Skip to main content

Function: isPrimitive()

isPrimitive(input: unknown): input is string | number | bigint | boolean

Check whether a value is a primitive

Parameters

ParameterTypeDescription
inputunknownThe input to check

Returns

input is string | number | bigint | boolean

Defined in

isPrimitive.ts:7