code: function sameValues(a, b) {
    var
      i = a.length,
      j = b.length,
      k = i === j
    ;
    if (k) {
      while (i--) {
        if (a[i] !== b[i]) {
          return !k;
        }
      }
    }
    return k;
  }
docs: compare two arrays values