@fiahfy/simple-clone
v0.0.4
Published
Clone(deep copy) object more efficiently like JSON stringify and parse
Downloads
1
Readme
simple-clone
Clone(deep copy) object more efficiently like JSON stringify and parse.
Installation
npm install @fiahfy/simple-clone
Usage
import { clone } from '@fiahfy/simple-clone'
const obj = { foo: 'bar' }
const newObj = clone(obj)
console.log(newObj) // { foo: 'bar' }
console.log(newObj === obj) // false