New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

is-array-same

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-array-same

Check if two arrays are same.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Is array same

A simple package to check if two arrays are similar

Installation

npm i is-array-same

OR

yarn add is-array-same

Usage

const { isArraySame } = require("is-array-same");

// usage
isArraySame(arr1, arr2));

// Example 1
const arr1 = [1, 2, 3];
const arr2 = [1, 2, 3];
isArraySame(arr1, arr2); // true

// Example 2
const arr3 = [1, 2, 3];
const arr4 = [1, 2, 3, 4];
isArraySame(arr3, arr4); // false

Keywords

arrays

FAQs

Package last updated on 18 Feb 2022

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