1
2
3
4
5
6
7
8
9
10
11
export function arraysAreIdentical(arr1, arr2) {
if (arr1.length !== arr2.length) {
return false;
}
for (let i = 0; i < arr1.length; i++) {
if (arr1[i] !== arr2[i]) {
return false;
}
}
return true;
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
v2
October 23, 2023