array-equal
Advanced tools
Comparing version 1.0.0 to 1.0.2
@@ -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" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
2381
26
5
1