by maroshii · 11y ago · 0 comments
var a1b2 = _.reduceRight({a:1,b:2},(memo,val,key) => key+val+memo,'');
or: var two = _.find({a:2,b:3,c:4},(val,key) => key !== 'a' && key !== 'c' )
Until I see _.chain, _.compose, _.partialRight, _.zip or _.throttle (among others) implemented in the standard library lodash is a no-opt.With iterables and the "for of" loop javascript is definitely not going in the direction of functional programming though.
No comments yet.