nano-assign

Minimalistic Object.assign

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
nano-assign
1.0.14 years ago5 years agoMinified + gzip package size for nano-assign in KB

Readme

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