Vanilla Pills
A collection of JavaScript methods and concepts
Array Functions
Array.prototype.map()
The map() method creates a new array populated with the results of calling a provided function on every element in the calling array.
The map() method creates a new array populated with the results of calling a provided function on every element in the calling array.
MDN
Array.prototype.filter()
The filter() method creates a new array with all elements that pass the test implemented by the provided function.
The filter() method creates a new array with all elements that pass the test implemented by the provided function.
MDN
Array.prototype.reduce()
The reduce() method executes a reducer function (that you provide) on each element of the array, resulting in a single output value.
The reduce() method executes a reducer function (that you provide) on each element of the array, resulting in a single output value.
MDN