module.exports = digits => {
  const first = digits[0];

  for (let i = 1; i < digits.length; ++i) {
    if (digits[i] !== first) {
      return true;
    }
  }

  return false;
};

@@ -61,41 +61,29 @@
 or (
-let i = 1; i %3C digits.length; ++i
+const digit of digits
 ) %7B%0A
@@ -99,12 +99,8 @@
 igit
-s%5Bi%5D
  !==

Refactor index loop to for-of loop