8000 GitHub - afska/protolodash: 🛠️ Lodash utils inserted in the prototypes of your primitive types.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was 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

About

🛠️ Lodash utils inserted in the prototypes of your primitive types.

Topics

Resources

Stars

Watchers

Forks

0