extend2

Simple function to extend objects

Showing:

Popularity

Downloads/wk

39.7K

GitHub Stars

45

Maintenance

Last Commit

5yrs ago

Contributors

14

Package

Dependencies

0

Size (min+gzip)

0.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

extend2

Forked from node-extend, the difference is overriding array as primitive when deep clone.

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Usage

const extend = require('extend2');

// for deep clone
extend(true, {}, object1, objectN);

License

node-extend is licensed under the MIT License.

Acknowledgements

All credit to the jQuery authors for perfecting this amazing utility.

Ported to Node.js by Stefan Thomas with contributions by Jonathan Buchanan and Jordan Harband.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100