mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-01-26 17:12:23 +00:00
sync
This commit is contained in:
16
node_modules/array-equal/index.js
generated
vendored
16
node_modules/array-equal/index.js
generated
vendored
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* 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
|
||||
for (var i = 0; i < length; i++)
|
||||
if (arr1[i] !== arr2[i])
|
||||
return false
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user