3 ms·
Didn't understand all the JodaTime references, but as far as your main point, this library is doing the same things that underscore is doing - wrapping an array
by matthewmueller 14y ago
Didn't understand all the JodaTime references, but as far as your main point, this library is doing the same things that underscore is doing - wrapping an array. Consider: _(['apple', 'orange', 'pear']).map(fn);
You could just as easily approach this lib the same way: array(['apple', 'orange', 'pear']).map(fn);
The only difference with this library and other arrays/client-side collections I've come across is that there's less indirection, which I find less confusing, ie. am I working with a collection object or am I working with an array?
Of course there are caveats (things to consider) when using this lib which I outlined in the docs.