UNPKG

ideaz-element

Version:

<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>

3 lines (2 loc) 1.81 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const{toString:d}=Object.prototype;function t(n,o){return d.call(n)===`[object ${o}]`}function c(n){return typeof n<"u"}function r(n){return!c(n)}function i(n){return n!==null&&t(n,"Object")}function p(n){return f(n)||u(n)?n.length===0:n instanceof Map||n instanceof Set?n.size===0:i(n)?Object.keys(n).length===0:!1}function y(n){return t(n,"Date")}function s(n){return n===null}function g(n){return r(n)&&s(n)}function w(n){return r(n)||s(n)}function m(n){return t(n,"Number")}function b(n){return t(n,"Promise")&&i(n)&&e(n.then)&&e(n.catch)}function u(n){return t(n,"String")}function e(n){return typeof n=="function"}function S(n){return t(n,"Boolean")}function D(n){return t(n,"RegExp")}function f(n){return n&&Array.isArray(n)}function O(n){return typeof window<"u"&&t(n,"Window")}function N(n){return i(n)&&!!n.tagName}function a(n){return t(n,"Map")}const j=n=>n!=null,l=typeof window>"u",E=!l;function A(n){return/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/.test(n)}const U=n=>!!(u(n)&&(n.includes("slot")||n.includes("Slot"))),h=n=>typeof n!="object"||n===null?!0:Object.keys(n).length===0;exports.is=t;exports.isArray=f;exports.isBoolean=S;exports.isClient=E;exports.isDate=y;exports.isDef=c;exports.isElement=N;exports.isEmpty=p;exports.isEmptyObject=h;exports.isFunction=e;exports.isMap=a;exports.isNull=s;exports.isNullAndUnDef=g;exports.isNullOrUnDef=w;exports.isNumber=m;exports.isObject=i;exports.isPromise=b;exports.isRegExp=D;exports.isServer=l;exports.isSlot=U;exports.isString=u;exports.isUnDef=r;exports.isUrl=A;exports.isValid=j;exports.isWindow=O; //# sourceMappingURL=is.cjs.map