Socket
Socket
Sign inDemoInstall

lodash.assign

Package Overview
Dependencies
2
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lodash.assign

The lodash method `_.assign` exported as a module.


Version published
Weekly downloads
2M
decreased by-3.68%
Maintainers
3
Install size
40.3 kB
Created
Weekly downloads
 

Package description

What is lodash.assign?

The lodash.assign npm package is a method that assigns own enumerable string keyed properties of source objects to the destination object. It is part of the Lodash library, which is a popular utility library for JavaScript. lodash.assign is used primarily for object manipulation by copying properties from one or more source objects to a target object.

What are lodash.assign's main functionalities?

Object Property Assignment

This feature allows you to copy properties from one or more source objects to a target object. It modifies the target object and is useful for extending it with new properties.

{
  const object = { 'a': 1 };
  const source = { 'b': 2 };
  _.assign(object, source);
  console.log(object); // Output: { 'a': 1, 'b': 2 }
}

Other packages similar to lodash.assign

Readme

Source

lodash.assign v4.0.5

The lodash method _.assign exported as a Node.js module.

Installation

Using npm:

$ {sudo -H} npm i -g npm
$ npm i --save lodash.assign

In Node.js:

var assign = require('lodash.assign');

See the documentation or package source for more details.

Keywords

FAQs

Last updated on 02 Mar 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc