0.0.4 • Published 4 years ago

@fiahfy/simple-clone v0.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

simple-clone

badge

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
0.0.4

4 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago