json-deep-copy
v1.3.1
Published
faster deep-copy for json style data
Downloads
1,004
Readme
json-deep-copy
Faster deep-copy for json style object.
Features
- Simplified lodash.deepClone, maybe 15 times faster when copy many compilcated objects.
- Only support plain objects with number, string, array, boolean
Use
npm i json-deep-copy
const deepCopy = require('json-deep-copy')
// or
import deepCopy from 'json-deep-copy'
let deepCopyedObj = deepCopy(someObj)
Dev || test || benchmark
git clone [email protected]:zxdong262/deep-copy.git
cd deep-copy
npm i
# test
npm run test
# benchmark
npm run benchmark
LICENSE
MIT