jdonaghue / lodash

A utility library delivering consistency, customization, performance, and extras.

Home Page:http://lodash.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lo-Dash v1.3.1

A utility library delivering consistency, customization, performance, & extras.

Download

CDN copies are available on cdnjs & jsDelivr.
For smaller file sizes, create custom builds with only the features needed.

Dive in

There’s plenty of documentation, unit tests, & benchmarks.

For a list of upcoming features, check out our roadmap.

Features not in Underscore

Resources

  • Posts
  • Videos

Support

Tested in Chrome 528, Firefox 222, IE 6-10, Opera 9.25~15, Safari 3-6, Node.js 0.4.8-0.10.15, Narwhal 0.3.2, PhantomJS 1.9.1, RingoJS 0.9, & Rhino 1.7RC5.

Installation & usage

In browsers:

<script src="lodash.js"></script>

Using npm:

npm install lodash

npm install -g lodash
npm link lodash

In Node.js & Ringo:

var _ = require('lodash');
// or as an Underscore replacement
var _ = require('lodash/dist/lodash.underscore');

Notes:

  • Don’t assign values to special variable _ when in the REPL
  • If Lo-Dash is installed globally, run npm link lodash in your project’s root directory before requiring it
  • Node.js 0.10.8-0.10.11 have bugs preventing minified builds

In Rhino:

load('lodash.js');

In an AMD loader:

require({
  'paths': { 'underscore': 'path/to/lodash' }
},
['underscore'], function(_) {
  console.log(_.VERSION);
});

Release Notes

v1.3.1

  • Added missing cache property to the objects returned by getObject
  • Ensured maxWait unit tests pass in Ringo
  • Increased the maxPoolSize value
  • Optimized releaseArray & releaseObject

The full changelog is available here.

BestieJS

Lo-Dash is part of the BestieJS “Best in Class” module collection. This means we promote solid environment support, ES5+ precedents, unit testing, & plenty of documentation.

Author

twitter/jdalton
John-David Dalton

Contributors

twitter/kitcambridge twitter/mathias
Kit Cambridge Mathias Bynens

About

A utility library delivering consistency, customization, performance, and extras.

http://lodash.com/

License:Other