array methods javascript cheat sheet code example
Example 1: list of javascript cheat sheet
.every(n => ...) => Boolean
.some(n => ..) => Boolean
Example 2: list of javascript cheat sheet
list.splice(2, 1, X)
Example 3: list of javascript cheat sheet
list.push(X)
list.unshift(X)
list.splice(2, 0, X)
Example 4: list of javascript cheat sheet
list = [a,b,c,d,e]
Example 5: list of javascript cheat sheet
re = list.splice(1)
re = list.splice(1,2)
Example 6: list of javascript cheat sheet
.map(n => ...)
.reduce((total, n) => total)
.reduceRight(...)