Skip to content

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 ​

ParameterTypeDescription
valueunknownThe value to check
symbolsymbolThe symbol to look for

Returns ​

boolean

True if the value has the symbol marker

Released under the MIT License.