![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | src/ | 2 years ago | - | |
![]() | LICENSE | 7 years ago | 1.0K | |
![]() | README.md | 7 years ago | 1.1K | d7c1522 post receive test [كارل مبارك] |
![]() | index.js | 7 years ago | 1.2K | |
![]() | package.json | 2 years ago | 2.0K | |
![]() | rollup.config.js | 7 years ago | 128 |
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