Bachir Soussi Chiadmi ac58a24f5c added bower, gulp | 7 years ago | |
---|---|---|
.. | ||
dist | 7 years ago | |
LICENSE.txt | 7 years ago | |
README.md | 7 years ago | |
package.json | 7 years ago |
A utility library delivering consistency, customization, performance, & extras.
Lo-Dash builds (for modern environments):
Development and
Production
Lo-Dash compatibility builds (for legacy and modern environments):
Development and
Production
Underscore compatibility builds:
Development and
Production
For optimal file size, create a custom build with only the features you need
We’ve got API docs, benchmarks, and unit tests.
For a list of upcoming features, check out our roadmap.
The full changelog is available here.
In browsers:
<script src="lodash.js"></script>
Using npm
:
npm install lodash
npm install -g lodash
npm link lodash
To avoid potential issues, update npm
before installing Lo-Dash:
npm install npm -g
In Node.js and RingoJS v0.8.0+:
var _ = require('lodash');
// or as a drop-in replacement for Underscore
var _ = require('lodash/lodash.underscore');
Note: If Lo-Dash is installed globally, run npm link lodash
in your project’s root directory before requiring it.
In RingoJS v0.7.0-:
var _ = require('lodash')._;
In Rhino:
load('lodash.js');
In an AMD loader like RequireJS:
require({
'paths': {
'underscore': 'path/to/lodash'
}
},
['underscore'], function(_) {
console.log(_.VERSION);
});
For more information check out these articles, screencasts, and other videos over Lo-Dash:
Posts
Videos
fromIndex
argumentObject
constructorthis
bindingcallback
and thisArg
argumentscallback
shorthandsLo-Dash has been tested in at least Chrome 5~24, Firefox 1~18, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.20, Narwhal 0.3.2, PhantomJS 1.8.1, RingoJS 0.9, and Rhino 1.7RC5.