Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

A JavaScript object property copier. Copies the enumerable properties of one or more objects to a target object. **Unmaintained**

Notifications You must be signed in to change notification settings

shannonmoeller-archive/copier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copier

A JavaScript object property copier. Copies the enumerable properties of one or more objects to a target object.

Installation

Server-side (Node.js):

$ npm install copier

Client-side (component(1)):

$ component install shannonmoeller/copier.js

API

copier(target, ...objs)

Copies the enumerable properties of one or more objects to a target object.

var copier = require('copier'),
    foo = { a: 1, b: 2 },
    bar = { b: 3, c: 4 };

copier({}, foo, bar); // returns { a: 1, b: 3, c: 4 }

// foo and bar remain unchanged

copier(foo, bar); // foo now equals { a: 1, b: 3, c: 4 }

License

MIT

Bitdeli Badge

About

A JavaScript object property copier. Copies the enumerable properties of one or more objects to a target object. **Unmaintained**

Resources

Stars

Watchers

Forks

Packages

No packages published