isPrimitive
isPrimitive(value)
Checks if a value is a primitive type (string, number, boolean, null, undefined, symbol, bigint).
ts
isPrimitive("hello"); // true
isPrimitive(42); // true
isPrimitive({}); // false
isPrimitive([]); // false
ts
pipe("hello", isPrimitive()); // true
pipe({}, isPrimitive()); // false