You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
310 B
JavaScript
9 lines
310 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.areArraysEqual = areArraysEqual;
|
|
function areArraysEqual(array1, array2, itemComparer = (a, b) => a === b) {
|
|
return array1.length === array2.length && array1.every((value, index) => itemComparer(value, array2[index]));
|
|
} |