UNPKG

@polgubau/utils

Version:

A collection of utility functions for TypeScript

14 lines 263 B
// src/functions/debounce/debounce.ts function debounce(fn, delay) { let timer; return (...args) => { clearTimeout(timer); timer = setTimeout(() => { fn(...args); }, delay); }; } export { debounce }; //# sourceMappingURL=debounce.mjs.map