yarn add nano-assign
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
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
nano-assign © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @_egoistlily
Version | Tag | Published |
---|---|---|
1.0.1 | latest | 4yrs ago |