extend2

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i extend2

Weekly Downloads

29,466

Version

1.0.1

License

MIT

Unpacked Size

6.15 kB

Total Files

6

Last publish

Collaborators

  • fengmk2
  • popomore