1.0.2 • Published 6 years ago

ctrlcv v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

CTRLCV

Copies a simple JS object using JSON.stringify and JSON.parse.

Install

npm i -S ctrlcv or yarn add ctrlcv

Usage

import copy from "ctrlcv"

const a = { prop1: "wibble", prop2: "wobble" }
const b = copy(a)

b.prop1 = "wubble"

alert(a.prop1 !== v.prop1) //true
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago