Array helpers for Javascript

I would like to represent you some useful Javascript helper functions for manipulating data.

.forEach()

forEach() calls a provided callback function once for each element in an array in ascending order.

Syntax:

Example:

.filter()

flter() creates a new array with all elements that pass the test implemented by the provided function.

Syntax:

Example:

.find()

find() returns the value of the first element in the provided array that satisfies the provided condition.

Syntax:

Example:

.map()

map() creates a new array with all elements that pass the test implemented by the provided function.

Syntax:

Example:

.reduce()

reduce() executes a reducer dunction (that you provide) on each element of the array, resulting in single output value.

Syntax:

Example: