reflection

0.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i reflection

    Weekly Downloads

    9

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • gozala