A value that is not an object: undefined, null, a boolean, a number, a bigint, a string, or a symbol. Functions
and wrapper instances such as new String("value") are objects and fall outside this type.
Primitives are immutable and compared by value rather than by reference, so equality follows content: two
independently built strings or numbers address the same Map or Set entry, where two structurally equal objects
would count as distinct ones. Symbols, though primitive, are unique by construction, so only the very same symbol
ever compares equal.
ECMAScript primitive value.
A value that is not an object:
undefined,null, a boolean, a number, a bigint, a string, or a symbol. Functions and wrapper instances such asnew String("value")are objects and fall outside this type.Primitives are immutable and compared by value rather than by reference, so equality follows content: two independently built strings or numbers address the same
MaporSetentry, where two structurally equal objects would count as distinct ones. Symbols, though primitive, are unique by construction, so only the very same symbol ever compares equal.