(value: unknown, symbol: symbol)
| 112 | * @returns Whether the value has `{ [symbol]: true }` in its prototype chain. |
| 113 | */ |
| 114 | export function isInstance(value: unknown, symbol: symbol): value is { [key: symbol]: true } { |
| 115 | return isObject(value) && symbol in value && value[symbol] === true; |
| 116 | } |
| 117 | |
| 118 | // ─── Unique ID ────────────────────────────────────────────────────────────────── |
| 119 |
no test coverage detected