Skip to content

AIDK API Reference / aidk-shared / isHostPrimitive

Function: isHostPrimitive() ​

ts
function isHostPrimitive(value: unknown): boolean;

Defined in: packages/shared/src/identity.ts:86

Check if a value is a host primitive component. Minification-safe - uses symbol identity, not function name.

Parameters ​

ParameterTypeDescription
valueunknownThe value to check

Returns ​

boolean

True if it's a host primitive

Released under the MIT License.