Checks if a value is a Primitive.
Objects are rejected whatever their shape, including functions and wrapper instances such as new String("value").
new String("value")
The value to check
True if the value is undefined, null, a boolean, a number, a bigint, a string, or a symbol; false otherwise
undefined
null
Checks if a value is a Primitive.
Objects are rejected whatever their shape, including functions and wrapper instances such as
new String("value").