Skip to content

Commit

Permalink
Remove unused debounce.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamghill committed Feb 25, 2023
1 parent 0eece27 commit 1a4be7b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,22 +142,6 @@ export const computeState = (key, fn) => (state) => {
return (state[key] = fn({ ...state }));
};

/**
*
* @param {function} callback
* @param {number} time
* @param {any} interval
* @returns {any}
*/
export const debounce = (callback, time = 250, interval) => {
(...args) => {
return clearTimeout(
interval,
(interval = setTimeout(callback, time, ...args))
);
};
};

/**
* @type {array}
*/
Expand Down

0 comments on commit 1a4be7b

Please sign in to comment.