@oruga-ui/oruga-next
Version:
UI components for Vue.js and CSS framework agnostic
17 lines (16 loc) • 402 B
JavaScript
/*! Oruga v0.11.0 | MIT License | github.com/oruga-ui/oruga */
function useDebounce(func, wait, immediate) {
let timeout;
return (...args) => {
const later = () => {
timeout = void 0;
func.apply(this, args);
};
if (timeout) clearTimeout(timeout);
timeout = setTimeout(later, wait);
};
}
export {
useDebounce as u
};
//# sourceMappingURL=useDebounce-CVLytXgm.mjs.map