@sebgroup/frontend-tools
Version:
A set of frontend tools
12 lines (10 loc) • 317 B
JavaScript
/**
* Verifies if a value is primitive (string, number, boolean)
* @param {any} value The value to be tested
* @returns {boolean} True if it's primitive, false otherwise
*/
function isPrimitive(value) {
return value !== Object(value);
}
export { isPrimitive };
//# sourceMappingURL=isPrimitive.js.map