nano-assign
Minimalistic Object.assign
Last updated 2 years ago by rem .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nano-assign 
SYNC missed versions from official npm registry.

nano-assign

NPM version NPM downloads CircleCI donate

Install

yarn add nano-assign

Usage

const assign = require('nano-assign')

assign({}, { foo: 'foo' }, null, undefined, { foo: 'bar' })
//=> { foo: 'bar' }

Gotchas

See the 7 lines of code to know what we're doing here ;P

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

nano-assign © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).

egoistian.com · GitHub @egoist · Twitter @_egoistlily

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |