You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
290 B
13 lines
290 B
2 months ago
|
function isEqualArrays(arr1:string[], arr2:string[]) {
|
||
|
if (arr1.length!== arr2.length) {
|
||
|
return false;
|
||
|
}
|
||
|
for (let i = 0; i < arr1.length; i++) {
|
||
|
if (arr1[i]!== arr2[i]) {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
export default isEqualArrays;
|