Skip to content

Commit

Permalink
fix: remove unused debounce() function
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Feb 6, 2018
1 parent 5d894e1 commit aed1ee9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ export const idx = (obj, accessor) => {

export const isClient = typeof window === 'object';

export const debounce = (fn, delay) => {
let timeout;

return (...args) => {
clearTimeout(timeout);
timeout = setTimeout(() => fn(...args), delay)
}
};

export const on = (obj, ...args) => obj.addEventListener(...args);

export const off = (obj, ...args) => obj.removeEventListener(...args);
Expand Down

0 comments on commit aed1ee9

Please sign in to comment.