Remove jsdoc
All checks were successful
repod / nextcloud (push) Successful in 38s
repod / nodejs (push) Successful in 1m15s

This commit is contained in:
Michel Roux 2023-07-28 01:57:37 +02:00
parent 43dfa54d64
commit 5a590bd210

View File

@ -1,13 +1,6 @@
/** // https://stackoverflow.com/a/53486112
* 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 export const debounce = (fn, delay) => {
* N milliseconds.
* https://stackoverflow.com/a/53486112
*
* @param {Function} fn function to wrap
* @param {number} delay timeout in ms
*/
export function debounce(fn, delay) {
let timeoutID = null let timeoutID = null
return function() { return function() {
clearTimeout(timeoutID) clearTimeout(timeoutID)