(obj: object)
| 15 | } |
| 16 | |
| 17 | function isBasicObjectOrArray(obj: object) { |
| 18 | const proto = Object.getPrototypeOf(obj); |
| 19 | return proto === null || proto === Object.prototype || |
| 20 | proto === Array.prototype; |
| 21 | } |
| 22 | |
| 23 | // Slightly faster than Reflect.ownKeys in V8 as of 12.9.202.13-rusty (2024-10-28) |
| 24 | function ownKeys(obj: object) { |