ptz-copy
v1.0.1
Published
ptz-copy allows you to copy javascripts objects
Downloads
4
Readme
ptz-copy
ptz-copy is a javascript library for coping objects
Be welcome to learn, help and play!!!
Install
Install with npm:
$ npm install ptz-copy --save
or clone from github:
$ git clone https://github.com/angeloocana/ptz-copy.git
Setup
$ npm install
$ typings install
*Add to your typings/index.d.ts
/// <reference path="../node_modules/ptz-copy/src/typings/index.d.ts" />
Test
$ npm test
Usage
import copy from "ptz-copy";
let obj = {say:"Hi!"};
let newObj = copy(obj);