Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
/ protolodash Public archive

๐Ÿ› ๏ธ Lodash utils inserted in the prototypes of your primitive types.

Notifications You must be signed in to change notification settings

afska/protolodash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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