vue-hooks-plus
Version:
Vue hooks library
15 lines (14 loc) • 441 B
JavaScript
const isObject = (value) => value !== null && typeof value === "object";
const isFunction = (value) => typeof value === "function";
const isString = (value) => typeof value === "string";
const isBoolean = (value) => typeof value === "boolean";
const isNumber = (value) => typeof value === "number";
const isUndef = (value) => typeof value === "undefined";
export {
isBoolean,
isFunction,
isNumber,
isObject,
isString,
isUndef
};