1. nano-assign
Minimalistic Object.assign
nano-assign
Package: nano-assign
Created by: egoist
Last modified: Tue, 10 May 2022 08:53:53 GMT
Version: 1.0.1
License: MIT
Downloads: 32,881
Repository: https://github.com/egoist/nano-assign

Install

npm install nano-assign
yarn add nano-assign

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin