AIDK API Reference / aidk-shared / hasSymbol
Function: hasSymbol() ​
ts
function hasSymbol(value: unknown, symbol: symbol): boolean;Defined in: packages/shared/src/identity.ts:48
Check if a value has a specific symbol marker.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
symbol | symbol | The symbol to look for |
Returns ​
boolean
True if the value has the symbol marker