DEV Community


Discussion on: The Power of Higher Order Functions in JavaScript (With examples and use cases)

jsmanifest profile image
jsmanifest Author

You are right, both of the examples both re-create the arrays. Will edit the post with the correct solution (check my response to your other reply for the solution)