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

lodash.isequal

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.isequal

The modern build of lodash’s `_.isEqual` as a module.

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11M
decreased by-7.93%
Maintainers
4
Weekly downloads
 
Created

What is lodash.isequal?

The lodash.isequal npm package is a utility function for performing deep equality comparisons between two values. It is capable of comparing arrays, objects, and primitive values to determine if they are equivalent in structure and value.

What are lodash.isequal's main functionalities?

Deep comparison of objects

This feature allows for the deep comparison of two objects, checking if they have the same properties and values.

const isEqual = require('lodash.isequal');

const object1 = { 'a': 1, 'b': 2 };
const object2 = { 'a': 1, 'b': 2 };

console.log(isEqual(object1, object2)); // true

Deep comparison of arrays

This feature enables the comparison of two arrays, verifying if they contain the same elements in the same order.

const isEqual = require('lodash.isequal');

const array1 = [1, 2, 3];
const array2 = [1, 2, 3];

console.log(isEqual(array1, array2)); // true

Comparison of nested structures

This functionality allows for the comparison of nested structures, ensuring that even deeply nested properties and values are equivalent.

const isEqual = require('lodash.isequal');

const object1 = { 'a': 1, 'b': { 'c': 2 } };
const object2 = { 'a': 1, 'b': { 'c': 2 } };

console.log(isEqual(object1, object2)); // true

Other packages similar to lodash.isequal

Keywords

FAQs

Package last updated on 26 Jan 2015

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