2690. Infinite Method Object ¶ TypeScript 1 2 3 4 5 6 7 8function createInfiniteObject(): Record<string, () => string> { return new Proxy( {}, { get: (_, prop: string) => () => prop, } ); } Was this page helpful? Thanks for your feedback! Thanks for your feedback! Help us improve this page by using our feedback form.