( obj: unknown, )
| 1 | import React from 'react'; |
| 2 | |
| 3 | function isPlainObjectOrArray( |
| 4 | obj: unknown, |
| 5 | ): obj is Record<string, unknown> | unknown[] { |
| 6 | return ( |
| 7 | (obj !== null && |
| 8 | typeof obj === 'object' && |
| 9 | [null, Object.prototype].includes(Object.getPrototypeOf(obj))) || |
| 10 | Array.isArray(obj) |
| 11 | ); |
| 12 | } |
| 13 | |
| 14 | export function deepEqualIgnoringFns( |
| 15 | a: unknown, |
no outgoing calls
no test coverage detected