Own
propertiesObject
creation for use with Object.create()
Simple The propertiesObject
is painfully verbose. own
is a helper function that makes it easy to create enumerable and writable propertiesObject
s from an object literal.
Installation
$ npm install own
Usage
Use the result of own()
as the second parameter in Object.create()
:
var own = var yourObject = Object yourObject // trueyourObjecthello // 'world'
Tests
Install the dependencies and run:
$ npm test
License
MIT License, see LICENSE for details.