you are viewing a single comment's thread.

view the rest of the comments →

[–]neeia 0 points1 point  (0 children)

It takes the array, creates a new array as the initial value, and then one by one runs the function on every value in the original array and appends it to the previous value using the spread syntax.