Socket
Book a DemoInstallSign in
Socket

array-equal

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-equal

Check if two arrays are equal

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
1.5M
-6.17%
Maintainers
1
Weekly downloads
 
Created
Source

array-equal

Check if two arrays are equal

It checks that the elements and order are the same.

Install

npm install array-equal

Usage

import arrayEqual from 'array-equal';

arrayEqual([1, 2, 3], [1, 2, 3]);
//=> true

arrayEqual([1, 2, 3], [1, 2, 3, 4]);
//=> false

Keywords

array

FAQs

Package last updated on 08 Apr 2025

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