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

array-equal

Package Overview
Dependencies
Maintainers
10
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-equal - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

9

index.js

@@ -1,4 +0,11 @@

/**
* Compare arrays
*
* @param {Array} arr1
* @param {Array} arr2
* @return {Boolean} - Arrays are equals
*/
module.exports = function equal(arr1, arr2) {
var length = arr1.length
if (arr1 === arr2) return true
if (length !== arr2.length) return false

@@ -5,0 +12,0 @@ for (var i = 0; i < length; i++)

{
"name": "array-equal",
"description": "check if two arrays are equal",
"version": "1.0.0",
"description": "Check if two arrays are equal",
"version": "1.0.2",
"author": {

@@ -12,3 +12,14 @@ "name": "Jonathan Ong",

"license": "MIT",
"repository": "component/array-equal"
"repository": "sindresorhus/array-equal",
"funding": "https://github.com/sponsors/sindresorhus",
"keywords": [
"array",
"equal",
"equals",
"same",
"identical",
"equality",
"compare",
"validate"
]
}
.npmignore
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