DEV Community

Discussion on: Writing a Functional Programming-Style map Function

 
rpearce profile image
Robert Pearce • Edited

...aaaaand I feel like an idiot. I totally see it now! We're still working with (fn, m) => ... and not fn => m => ..., so that doesn't make sense yet. I'll update ASAP. Thanks for your patience, and nice 👀!

Thread Thread
 
rpearce profile image
Robert Pearce

Quick fix was to change it to:

const mapId = map.bind(null, x => x.id)

Thanks again.