deepycopy
v1.1.1
Published
Simple, yet smart Javascript instance cloner
Downloads
3
Maintainers
Readme
deepcopy
Simple, yet smart Javascript instance cloner
Features
- Good browsers compatiblity
- Performant
- Easy
- UMD compatible
Installation
We recommend install via npm
because of it's cache and flat node modules tree
npm i deepcopy
then you able to import to Node.js/Browser easily
// Node.js
const DeepCopy = require("deepcopy");
// Browser
// window.DeepCopy OR DeepCopy
// ES6
import DeepCopy from "deepcopy";
Usage
const foo = { foo: "bar" };
const copyFoo = DeepCopy(foo);
License
MIT