index.js 216 B

12345678910
  1. module.exports = function equal(arr1, arr2) {
  2. var length = arr1.length
  3. if (length !== arr2.length) return false
  4. for (var i = 0; i < length; i++)
  5. if (arr1[i] !== arr2[i])
  6. return false
  7. return true
  8. }