extend2
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

extend2

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

NPM version Node.js CI Test coverage Known Vulnerabilities npm download

Usage

import { extend } from 'extend2';

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

License

extend2 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.

Contributors


ljharb


justmoon


jonmorehouse


popomore


greelgorke


andyburke


blaise-io


danbell


jamielinux


insin


madarche


Mithgol


fengmk2


2hu12

This project follows the git-contributor spec, auto updated at Sat Jun 15 2024 10:08:30 GMT+0800.

Readme

Keywords

Package Sidebar

Install

npm i extend2

Weekly Downloads

34,505

Version

4.0.0

License

MIT

Unpacked Size

20.6 kB

Total Files

10

Last publish

Collaborators

  • fengmk2
  • popomore