Nuptial Predicament Mediation
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

json-deep-copy

1.0.2 • Public • Published

Build Status

json-deep-copy

faster deep-copy for json style object

feature

  • simplified lodash.deepClone, maybe 15 times faster when copy many compilcated objects
  • only support plain objects with number, srting, array, boolean

use

npm i json-deep-copy
let deepCopy = require('json-deep-copy')
// or
import deepCopy from 'json-deep-copy'
 
let deepCopyedObj = deepCopy(someObj)

dev || test || benchmark

git clone git@github.com:zxdong262/deep-copy.git
cd deep-copy
npm i
npm run test
npm run benchmark

LICENSE

MIT

install

npm i json-deep-copy

Downloadsweekly downloads

20

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar