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/ArrayIsArray.ts at master · TypeScriptToLua/TypeScriptToLua Expand file tree/ Copy pathArrayIsArray.tsMore file actions 7 lines (6 loc) · 464 Bytes / Copy pathArrayIsArray.tsFile metadata and controls7 lines (6 loc) · 464 Bytes 1 2 3 4 5 6 7 declare type NextEmptyCheck = (this: void, table: any, index?: undefined) => unknown | undefined; export function __TS__ArrayIsArray(this: void, value: any): value is any[] { // Workaround to determine if value is an array or not (fails in case of objects without keys) // See discussion in: https://github.com/TypeScriptToLua/TypeScriptToLua/pull/737 return type(value) === "table" && (1 in value || (next as NextEmptyCheck)(value) === undefined); } |
| 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. |