1.1.1 • Published 5 years ago

deepycopy v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

deepcopy

Greenkeeper badge

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