removed lodash
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export function debounce(callback, wait) {
|
||||
let timeoutId = null;
|
||||
|
||||
return (...args) => {
|
||||
window.clearTimeout(timeoutId);
|
||||
|
||||
timeoutId = window.setTimeout(() => {
|
||||
callback.apply(null, args);
|
||||
}, wait);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user