4 ms·
I believe you can use partial() from this post[1] to do something like this: var processT1 = (isOk, items) => items.filter(isOk).map(toOtherType).flatten();
by icebraining 11y ago
I believe you can use partial() from this post[1] to do something like this:
var processT1 = (isOk, items) => items.filter(isOk).map(toOtherType).flatten();
var processT2 = partial(processT1, isOk);
http://benalman.com/news/2012/09/partial-application-in-javascript/#partial-application-from-the-left http://benalman.com/news/2012/09/partial-application-in-java...