Port of jQuery.extend for Node.js
npm install extend2Forked from [node-extend], the difference is overriding array as primitive when deep clone.
[![NPM version][npm-image]][npm-url]

[![Test coverage][codecov-image]][codecov-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]
[npm-image]: https://img.shields.io/npm/v/extend2.svg?style=flat-square
[npm-url]: https://npmjs.org/package/extend2
[codecov-image]: https://codecov.io/gh/eggjs/extend2/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/eggjs/extend2
[snyk-image]: https://snyk.io/test/npm/extend2/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/extend2
[download-image]: https://img.shields.io/npm/dm/extend2.svg?style=flat-square
[download-url]: https://npmjs.org/package/extend2
``ts
import { extend } from 'extend2';
// for deep clone
extend(true, {}, object1, objectN);
`
extend2 is licensed under the MIT License.
All credit to the jQuery authors for perfecting this amazing utility.
Ported to Node.js by [Stefan Thomas][github-justmoon] with contributions by [Jonathan Buchanan][github-insin] and [Jordan Harband][github-ljharb].
|
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`.
[github-justmoon]: https://github.com/justmoon
[github-insin]: https://github.com/insin
[github-ljharb]: https://github.com/ljharb
[node-extend]: https://github.com/justmoon/node-extend