isPrimitive
isPrimitive(
value):value is Primitive
Defined in: packages/core/src/guards/is-primitive.ts:14
Check if a value is a primitive.
A primitive is a value that is not an object and has no methods. There are 7 primitive data types: string, number, bigint, boolean, symbol, null, and undefined.
Parameters
Section titled “Parameters”unknown
The value to check
Returns
Section titled “Returns”value is Primitive
True if the value is a primitive