1.0.0 • Published 9 years ago

own v1.0.0

Weekly downloads
508
License
MIT
Repository
-
Last release
9 years ago

Own

Simple propertiesObject creation for use with Object.create()

The propertiesObject is painfully verbose. own is a helper function that makes it easy to create enumerable and writable propertiesObjects from an object literal.

Build Status

Installation

$ npm install own

Usage

Use the result of own() as the second parameter in Object.create():

var own = require('own')
var yourObject = Object.create(YOUR_PROTOTYPE, own({ hello: 'world' }))

yourObject.hasOwnProperty('hello') // true
yourObject.hello // 'world'

Tests

Install the dependencies and run:

$ npm test

License

MIT License, see LICENSE for details.

1.0.0

9 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago