loading...

re: Writing a Functional Programming-Style map Function VIEW POST

TOP OF THREAD FULL DISCUSSION
re: but since calling map(x => x.id) already returns a function Yes, that example works if map is returning a function, but I guess my read at tha...

...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 👀!

Quick fix was to change it to:

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

Thanks again.

Code of Conduct Report abuse