New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

append

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

append

append the properties from one object to another

0.0.0
Source
npm
Version published
Weekly downloads
3.2K
-7.24%
Maintainers
1
Weekly downloads
 
Created
Source

append adds method objects that copies all the properties from one object to another.

Object.prototype.append(object)

Example

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

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

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

This will print

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

As you can see, existing properties are getting replaced.

FAQs

Package last updated on 29 Aug 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts