Socket
Socket
Sign inDemoInstall

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.


Version published
Weekly downloads
2M
increased by3.09%
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 03 Dec 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