0.0.2 • Published 10 years ago

underscore-unchained v0.0.2

Weekly downloads
3
License
-
Repository
-
Last release
10 years ago

underscore-unchained

sigfried.github.io/underscore-unchained/

_.unchain(obj, magicPowers)

A mixin that lets you use Underscore methods directly from objects or classes of objects, and there's no need for _.chain()

_.unchain(['a','bb','ccc'])
    .pluck('length')
    .last()
    .range()
=> [0, 1, 2]

_.prometheus(obj, magicPowers)

Defy the gods and bring the full power of Underscore to all your Arrays, Objects, or whatever. Also works with constructors of user-defined classes. Use at your own risk.

_.prometheus(Array);
['a','bb','ccc'].pluck('length').last().range()
=> [0, 1, 2]
0.0.2

10 years ago

0.0.1

10 years ago