nano-assign
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i nano-assign

Weekly Downloads

7,697

Version

1.0.1

License

MIT

Unpacked Size

5.72 kB

Total Files

8

Last publish

Collaborators

  • rem