(wat: unknown)
| 105 | * @returns A boolean representing the result. |
| 106 | */ |
| 107 | export function isPrimitive(wat: unknown): wat is Primitive { |
| 108 | return wat === null || isParameterizedString(wat) || (typeof wat !== 'object' && typeof wat !== 'function'); |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Checks whether given value's type is an object literal, or a class instance. |
no test coverage detected