We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
This utility checks if a value is of primitive type (string, number, or boolean).
string
number
boolean
console.log(isPrimitive("hello world"); // true console.log(isPrimitive(["hello world"]); // false