Jul 25, 2017 · 1 min read
Great intro to higher order functions! However, I’m struggling with a more complex example. Consider the following:
You have two arrays, A and B, containing different objects. For each object in A, you need to find the corresponding object in B (by their id property), and update some of the properties of the object from B. This could be done the old way, using two for cycles, like so: https://pastebin.com/U7yHbj4W
Can this be done using the new functions? Do you have any ideas?
