From 5a590bd210317468f8522256aebc473ad092c910 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 28 Jul 2023 01:57:37 +0200 Subject: [PATCH] Remove jsdoc --- src/utils/debounce.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/utils/debounce.js b/src/utils/debounce.js index 9c4cf90..c63c724 100644 --- a/src/utils/debounce.js +++ b/src/utils/debounce.js @@ -1,13 +1,6 @@ -/** - * Returns a function, that, as long as it continues to be invoked, will not - * be triggered. The function will be called after it stops being called for - * N milliseconds. - * https://stackoverflow.com/a/53486112 - * - * @param {Function} fn function to wrap - * @param {number} delay timeout in ms - */ -export function debounce(fn, delay) { +// https://stackoverflow.com/a/53486112 + +export const debounce = (fn, delay) => { let timeoutID = null return function() { clearTimeout(timeoutID)