$ cnpm install nanoclone
Only 300B to deep clone JavaScript objects
See the size of the most popular clone npm package with 250M+ downloads

And nanoclone size:

yarn add nanoclone
npm install nanoclone
import clone from 'nanoclone'
let a = {
num: 2,
arr: [1, 2, 3],
nested: {
obj: {
a: 0
}
}
}
let b = clone(a)
MIT
Copyright 2013 - present © cnpmjs.org | Home |