function f(l, t) {
  const i = String(l);
  let e = i.indexOf(t), n = e, o = 0, r = 0;
  if (typeof t != "string")
    throw new TypeError("Expected substring");
  for (; e !== -1; )
    e === n ? ++o > r && (r = o) : o = 1, n = e + t.length, e = i.indexOf(t, n);
  return r;
}
export {
  f as longestStreak
};
//# sourceMappingURL=index.es.js.map
