The example source code for the book Functional JavaScript by Michael Fogus, published by O'Reilly
349
stars
101
forks
source link
is that how you would implement the complement function in chapter 2 section collection centric programming # reject #13
Closed
a-eid closed 3 years ago
function complement(fn){ return (function(num){ return !fn(num); }) }