# nanoclone
[](https://github.com/kelin2025/nanoclone/blob/master/LICENSE)
[](https://npmjs.com/package/nanoclone)
Only **300B** to deep clone JavaScript objects
## Is it small enough?
See the size of the most popular **[clone](https://www.npmjs.com/package/clone)** npm package with **250M+** downloads

And nanoclone size:

## Supported
- [x] Primitives
- [x] Arrays
- [x] Plain objects
- [x] DOM Nodes
- [x] Date instances
- [x] RegExp instances
- [x] Maps
- [x] Sets
- [x] Circular structures
## Installation
```
yarn add nanoclone
npm install nanoclone
```
## Usage
```javascript
import clone from 'nanoclone'
let a = {
num: 2,
arr: [1, 2, 3],
nested: {
obj: {
a: 0
}
}
}
let b = clone(a)
```
## License
MIT