Checks if the provided value is a primitive type (null, undefined, bigint, boolean, number, string or symbol).
The value to check.
A boolean indicating whether the provided value is a primitive type.
isPrimitive(123);//=> trueisPrimitive({});//=> false Copy
isPrimitive(123);//=> trueisPrimitive({});//=> false
Generated using TypeDoc
Checks if the provided value is a primitive type (null, undefined, bigint, boolean, number, string or symbol).