Calls the specified callback function on each element of a list, and returns an array that contains the results.
A function that accepts up to three arguments. The function is called for each element in the list.
n object to which the this keyword can refer in the callback function. If thisArg is omitted, undefined is used.
An array containing the result of calling the callback function on each element in the list.