/ live.thehmm.nl / back / node_modules / nanoclone /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]src/2 years ago -  
[   ]LICENSE7 years ago1.0K 
[TXT]README.md7 years ago1.1Kd7c1522 post receive test [كارل مبارك]
[   ]index.js7 years ago1.2K 
[   ]package.json2 years ago2.0K 
[   ]rollup.config.js7 years ago128  
README.md

nanoclone

license npm
Only 300B to deep clone JavaScript objects

Is it small enough?

See the size of the most popular clone npm package with 250M+ downloads image
And nanoclone size:
image

Supported

Installation

yarn add nanoclone
npm install nanoclone

Usage

import clone from 'nanoclone'

let a = {
  num: 2,
  arr: [1, 2, 3],
  nested: {
    obj: {
      a: 0
    }
  }
}

let b = clone(a)

License

MIT

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80