element-plus
Version:
A Component Library for Vue 3
16 lines (13 loc) • 600 B
JavaScript
import { isArray, isObject } from '@vue/shared';
export { isArray, isDate, isFunction, isObject, isPromise, isString, isSymbol } from '@vue/shared';
export { isBoolean, isNumber } from '@vueuse/core';
export { isVNode } from 'vue';
const isUndefined = (val) => val === void 0;
const isEmpty = (val) => !val && val !== 0 || isArray(val) && val.length === 0 || isObject(val) && !Object.keys(val).length;
const isElement = (e) => {
if (typeof Element === "undefined")
return false;
return e instanceof Element;
};
export { isElement, isEmpty, isUndefined };
//# sourceMappingURL=types.mjs.map