json-deep-copy
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

json-deep-copy

Build Status codecov

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 git@github.com:zxdong262/deep-copy.git
cd deep-copy
npm i

# test
npm run test

# benchmark
npm run benchmark

LICENSE

MIT

Dependents (6)

Package Sidebar

Install

npm i json-deep-copy

Weekly Downloads

27

Version

1.3.1

License

MIT

Unpacked Size

7.27 kB

Total Files

8

Last publish

Collaborators

  • zxdong262