* Check if a value is a proxiable object (not Date, RegExp, or Temporal)
( value: unknown, )
| 58 | * Check if a value is a proxiable object (not Date, RegExp, or Temporal) |
| 59 | */ |
| 60 | function isProxiableObject( |
| 61 | value: unknown, |
| 62 | ): value is Record<string | symbol, unknown> { |
| 63 | return ( |
| 64 | value !== null && |
| 65 | typeof value === `object` && |
| 66 | !((value as any) instanceof Date) && |
| 67 | !((value as any) instanceof RegExp) && |
| 68 | !isTemporal(value) |
| 69 | ) |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Creates a handler for array iteration methods that ensures proxied elements |
no test coverage detected
searching dependent graphs…