* A type guard for RuntimeObject. * * TODO: replace this with `isObject` from `@metamask/utils` * * @param value - The value to check. * @returns Whether the specified value has a runtime type of `object` and is * neither `null` nor an `Array`.
(value: unknown)
| 23 | * neither `null` nor an `Array`. |
| 24 | */ |
| 25 | function isObject(value: unknown): value is RuntimeObject { |
| 26 | return Boolean(value) && typeof value === 'object' && !Array.isArray(value); |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * A type guard for ensuring an object has a property. |
no outgoing calls
no test coverage detected