(obj: object)
| 29 | } |
| 30 | |
| 31 | function getKeysDeep(obj: object) { |
| 32 | const keys = new Set<string | symbol>(); |
| 33 | |
| 34 | while (obj !== Object.prototype && obj !== Array.prototype && obj != null) { |
| 35 | for (const key of ownKeys(obj)) { |
| 36 | keys.add(key); |
| 37 | } |
| 38 | obj = Object.getPrototypeOf(obj); |
| 39 | } |
| 40 | |
| 41 | return keys; |
| 42 | } |
| 43 | |
| 44 | // deno-lint-ignore no-explicit-any |
| 45 | const Temporal = (globalThis as any).Temporal ?? Object.create(null); |