extend2

Port of jQuery.extend for node.js and the browser

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
extend2
4601.0.1a year ago6 years agoMinified + gzip package size for extend2 in KB

Readme

extend2
Forked from node-extend, the difference is overriding array as primitive when deep clone.
!NPM versionnpm-imagenpm-url !build statustravis-imagetravis-url !Test coveragecodecov-imagecodecov-url !David depsdavid-imagedavid-url !Known Vulnerabilitiessnyk-imagesnyk-url !npm downloaddownload-imagedownload-url

Usage

const extend = require('extend2');

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

License

node-extend is licensed under the MIT Licensemit-license-url.

Acknowledgements

All credit to the jQuery authors for perfecting this amazing utility.
Ported to Node.js by Stefan Thomasgithub-justmoon with contributions by Jonathan Buchanangithub-insin and Jordan Harbandgithub-ljharb.