$ gnpm install extend2
Forked from node-extend, the difference is overriding array as primitive when deep clone.
const extend = require('extend2');
// for deep clone
extend(true, {}, object1, objectN);
node-extend
is licensed under the MIT License.
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.
Copyright 2013 - present © cnpmjs.org | Home |