UNPKG

umy-ui

Version:

一个基于 vue 的 PC 端表格UI库,解决万级数据渲染卡顿问题,过万数据点击全选卡顿,等等问题

29 lines (22 loc) 718 B
export function isString(obj) { return Object.prototype.toString.call(obj) === '[object String]'; } export function isNumber(obj) { return Object.prototype.toString.call(obj) === '[object Number]'; } export function isObject(obj) { return Object.prototype.toString.call(obj) === '[object Object]'; } export function isHtmlElement(node) { return node && node.nodeType === Node.ELEMENT_NODE; } export const isFunction = (functionToCheck) => { var getType = {}; return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; }; export const isUndefined = (val)=> { return val === void 0; }; export const isDefined = (val) => { return val !== undefined && val !== null; };