UNPKG
@otbi/lotide
Version:
latest (1.0.1)
1.0.1
1.0.0
Lighthouse Lotide
github.com/Oluwatobii/lotide
Oluwatobii/lotide
@otbi/lotide
/
eqArrays.js
15 lines
(13 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// FUNCTION IMPLEMENTATION
const
eqArrays =
function
(
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
; };
module
.
exports
= eqArrays;