Skip to content

Function: isPrimitive() ​

ts
function isPrimitive(
  value: unknown,
): value is string | number | bigint | boolean | null;

Parameters ​

ParameterType
valueunknown

Returns ​

value is string | number | bigint | boolean | null