Bits of code
Reduce array to objects in that array
let array = [
{ v1: "v1", v2: "v2" },
{ v1: "v1", v2: "v2" },
{ v1: "v1", v2: "v2" },
];
let result = array.reduce((currentArry, elementOfTheArry, Index) => {
currentArry.push(elementOfTheArry.v1);
return currentArry; // ********* Important ******
}, []);
console.log(result) // result = [ 'v1', 'v1', 'v1' ]Coerce string into a number
Backticks reference
Dynamic Object
Array intersection
Array Difference
Symmetrical Difference
Union
find duplicates
Javascript ES6/ES5 find in array and change
Check if Object has a property
ParseJwt without lib
Last updated