GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — TypeScriptToLua/src/lualib/ArrayFill.ts at master · TypeScriptToLua/TypeScriptToLua Expand file tree/ Copy pathArrayFill.tsMore file actions 19 lines (15 loc) · 510 Bytes / Copy pathArrayFill.tsFile metadata and controls19 lines (15 loc) · 510 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 // https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.fill export function __TS__ArrayFill<T>(this: T[], value: T, start?: number, end?: number): T[] { let relativeStart = start ?? 0; let relativeEnd = end ?? this.length; if (relativeStart < 0) { relativeStart += this.length; } if (relativeEnd < 0) { relativeEnd += this.length; } for (let i = relativeStart; i < relativeEnd; i++) { this[i] = value; } return this; } |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |