npm.io
5.1.0 • Published 1 week ago

@eggjs/extend2

Licence
MIT
Version
5.1.0
Deps
0
Size
5 kB
Vulns
0
Weekly
0

@eggjs/extend2

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

NPM version Known Vulnerabilities npm download

Usage

import { extend } from '@eggjs/extend2';

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

License

@eggjs/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.

Keywords