@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
18 lines (15 loc) • 333 B
JavaScript
;
exports.__esModule = true;
exports.default = void 0;
const debounce = (callback, time) => {
let interval;
return (...args) => {
clearTimeout(interval);
interval = setTimeout(() => {
interval = null;
callback(...args);
}, time);
};
};
var _default = debounce;
exports.default = _default;