underscore-unchained

0.0.2 • Public • Published

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]

Readme

Keywords

none

Package Sidebar

Install

npm i underscore-unchained

Weekly Downloads

0

Version

0.0.2

License

none

Last publish

Collaborators

  • sigfried