0.0.1 • Published 12 years ago

underscore-injection v0.0.1

Weekly downloads
10
License
-
Repository
github
Last release
12 years ago

Underscore Injection

[1, 2, 3, 4, 5, 6, 7, 8]
    .map(Math.sin)
    .map(times10)
    .map(Math.floor)
    .filter(isEven)
    .reduce(add, 0);
=> -4

Injects all* of the Underscore collection and array goodies right into your Array.prototype.

*: Excepts for toArray and range

Install

$ npm install underscore-injection

Usage

var _ = require('underscore');
require('underscore-injection');

That's all, don't even bother giving it a variable name.

Test

$ make test
0.0.1

12 years ago

0.0.0

12 years ago