🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

lodash.assign

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.assign

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

4.2.0
latest
Source
npm
Version published
Weekly downloads
3.1M
-13.23%
Maintainers
3
Weekly downloads
 
Created

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

Keywords

lodash-modularized

FAQs

Package last updated on 13 Aug 2016

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