1.0.5 • Published 8 years ago

assign-defined v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

assign-defined

Object.assign that skips any undefined properties from source objects

Install

$ npm i assign-defined --save

Usage

var assignDefined = require('assign-defined')

var target = {}
//only copy defined properties
assignDefined(target, { a: undefined, b: 1 }, { c: 2 })

//target is { b: 1, c: 2 }

License

MIT

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago