let delay = false
...
delay && clearTimeout(delay)
delay = setTimeout(() => {
callfunc(string, signal)
}, 2000)
I got delay
var and I want it to be either bolean, function and timeout function. What type should it be?