song-ui-u
Version:
vue3 + js的PC前端组件库
15 lines (12 loc) • 409 B
JavaScript
;
function types() {
const type = {};
const types2 = ["Number", "String", "Boolean", "Array", "Function", "Null", "Undefined", "Set", "Map", "Object", "Promise"];
types2.forEach((item) => {
const fun = `is${item}`;
type[fun] = (value) => Object.prototype.toString.call(value) === `[object ${item}]`;
});
return type;
}
exports.types = types;
//# sourceMappingURL=types.cjs.map