Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash.assign

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.assign

The Lo-Dash function `_.assign` as a Node.js module generated by lodash-cli.

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2M
decreased by-13.24%
Maintainers
4
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

FAQs

Package last updated on 11 Nov 2013

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc