Checks whether the given value is a JavaScript primitive.
This includes string, number, boolean, bigint, symbol, undefined, and null.
string
number
boolean
bigint
symbol
undefined
null
The value to test.
true if the value is a primitive; otherwise, false.
true
false
Checks whether the given value is a JavaScript primitive.
This includes
string,number,boolean,bigint,symbol,undefined, andnull.