Minimalistic Object.assign
npm install nano-assign   
``bash`
yarn add nano-assign
`js
const assign = require('nano-assign')
assign({}, { foo: 'foo' }, null, undefined, { foo: 'bar' })
//=> { foo: 'bar' }
`
See the 7 lines of code to know what we're doing here ;P
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
nano-assign © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
> egoistian.com · GitHub @egoist · Twitter @_egoistlily