asp-smart-ui-plus-test
Version:
A Component Library for Vue 3
30 lines (28 loc) • 1.06 kB
JavaScript
const aspIsArray = (obj) => {
return Object.prototype.toString.call(obj) === "[object Array]";
};
const aspIsObject = (obj) => {
return Object.prototype.toString.call(obj) === "[object Object]";
};
const aspIsFunction = (obj) => {
return Object.prototype.toString.call(obj) === "[object Function]";
};
const aspIsNumber = (obj) => {
return Object.prototype.toString.call(obj) === "[object Number]";
};
const aspIsString = (obj) => {
return Object.prototype.toString.call(obj) === "[object String]";
};
const aspIsBoolean = (obj) => {
return Object.prototype.toString.call(obj) === "[object Boolean]";
};
const aspIsNull = (obj) => {
return Object.prototype.toString.call(obj) === "[object Null]";
};
const aspIsUndefined = (obj) => {
return Object.prototype.toString.call(obj) === "[object Undefined]";
};
const aspIsSymbol = (obj) => {
return Object.prototype.toString.call(obj) === "[object Symbol]";
};
export { aspIsArray, aspIsBoolean, aspIsFunction, aspIsNull, aspIsNumber, aspIsObject, aspIsString, aspIsSymbol, aspIsUndefined };