protolodash
v3.10.0
Published
Lodash utils inserted in the prototypes of your primitive types.
Downloads
4
Readme
protolodash
Talk directly with whom you have to talk!
This is a wrapper of lodash library, that inserts its utils into the prototypes of your primitive types. In theory, it's auto-updatable as the function names are obtained with a crawler of the official docs. Enjoy!
users
how to use
var _ = require('protolodash');
[1, [2, 3], [4]].flatten();
// → [1, 2, 3, 4]
['one', 'two', 'three'].groupBy('length');
// → { '3': ['one', 'two'], '5': ['three'] }
"abc".padLeft(6);
// → " abc"
function(a, b) { return a + b; }.partial(2)(3);
// → 5
_.isNull(null);
// → true
//(you can still use lodash normally)
how to install
npm install protolodash --save
what is supported?
["Array", "Collection", "Date", "Function", "String"]
...and Object?
Noup.
devs
how to update
sudo npm install -g coffee-script
npm install
coffee crawler.coffee > methods.js