adverich-kun-ui
Version:
Una librería de componentes Vue.js con Tailwind CSS
30 lines (29 loc) • 563 B
JavaScript
function i(t) {
return t !== null && typeof t == "object" && !Array.isArray(t);
}
function o(t) {
return Array.isArray(t);
}
function u(t) {
return typeof t == "string";
}
function f(t) {
return i(t) ? Object.keys(t).length > 0 : o(t) || u(t) ? t.length > 0 : !1;
}
function s(t, n = 100) {
let r;
return (...e) => {
clearTimeout(r), r = setTimeout(() => t(...e), n);
};
}
function c(t) {
return JSON.parse(JSON.stringify(t));
}
export {
s as debounce,
c as fullCopy,
o as isArray,
f as isNotEmpty,
i as isObject,
u as isString
};