@sapphire/utilities
Version:
Common JavaScript utilities for the Sapphire Community
15 lines (12 loc) • 468 B
JavaScript
;
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// src/lib/isPrimitive.ts
var primitiveTypes = ["string", "bigint", "number", "boolean"];
function isPrimitive(input) {
return primitiveTypes.includes(typeof input);
}
__name(isPrimitive, "isPrimitive");
exports.isPrimitive = isPrimitive;
//# sourceMappingURL=isPrimitive.cjs.map
//# sourceMappingURL=isPrimitive.cjs.map