Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
append properties from one object to another
JavaScript
tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.npmignore
LICENSE.mkd
README.mkd
append.js
package.json
test.js

README.mkd

append one object to another.

append(obj1, obj2)

Example

var a = {
    name: "a",
    width: 90,
    height: 70
};

var b = {
    name: "b",
    length: 6
};

console.log(append(a, b));

This will print

{ name: 'b', width: 90, height: 70, length: 6 }

As you can see, existing properties are getting replaced.

Something went wrong with that request. Please try again.