node package manager

json-deep-copy

json-deep-copy

faster deep-copy for json style data

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