UNPKG

@yeger/debounce

Version:

A tiny TypeScript library for debouncing functions.

10 lines (9 loc) 155 B
function u(t, o) { let e; return (...i) => { e !== void 0 && clearTimeout(e), e = setTimeout(() => t(...i), o); }; } export { u as debounce };