Intermediate Algorithm Scripting Question: Steam Roller

Is there something you don’t understand about the solution?
Without the spread operator, flattenedArray just gets an array pushed onto it, not individual values.

1 Like