2690. Infinite Method Object ¶ TypeScript 1 2 3 4 5 6 7 8function createInfiniteObject(): Record<string, () => string> { return new Proxy( {}, { get: (_, prop: string) => () => prop, } ); }