UNPKG

@sapphire/utilities

Version:
15 lines (12 loc) 468 B
'use strict'; 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