primitive value

A simple value such as a number, string or boolean, as opposed to an object or array.

In more detail

Primitives compare by value, so two equal numbers are always Object.is equal. Objects compare by reference, which is why they need extra care in state and dependency arrays.

Related terms

Taught in

References