// https://www.ecma-international.org/ecma-262/9.0/index.html#sec-array.prototype.includes export function __TS__ArrayIncludes(this: T[], searchElement: T, fromIndex = 0): boolean { const len = this.length; let k = fromIndex; if (fromIndex < 0) { k = len + fromIndex; } if (k < 0) { k = 0; } for (const i of $range(k + 1, len)) { if (this[i - 1] === searchElement) { return true; } } return false; }