0.0.1 • Published 12 years ago

reflection v0.0.1

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

reflection

I don't know about you, but I'm tired of writing:

Array.prototype.slice.call(arguments, 1)

// or

Object.prototype.hasOwnProperty(object, 'foo')

This simple library allows you to do the same in less chatty way (Specially useful when working with promises).

var reflection = require('reflection/core')

reflection.slice(arguments, 2)
reflection.owns(object, 'foo')
reflection.split('foo bar baz', ' ')

Install

npm install reflection