UNPKG

@oruga-ui/oruga-next

Version:

UI components for Vue.js and CSS framework agnostic

16 lines (15 loc) 420 B
"use strict"; /*! 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); }; } exports.useDebounce = useDebounce; //# sourceMappingURL=useDebounce-BAemuDpF.cjs.map