@sebgroup/frontend-tools
Version:
A set of frontend tools
16 lines (12 loc) • 407 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
/**
* 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);
}
exports.isPrimitive = isPrimitive;
//# sourceMappingURL=isPrimitive.js.map