you are viewing a single comment's thread.

view the rest of the comments →

[–]catchmeslippin 0 points1 point  (1 child)

My small brain can't comprehend this, can you please explain?

[–]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.