#free text search using api
1 messages · Page 1 of 1 (latest)
you could use a debounce function here
sending a code sample in a minute, ive done this b4
hope it helps! feel ya there, dont wanna make too many requests lmao
thank you.. checking soon
❤️
can you explain how debounce function works? i couldn't find official documentation of this function but it seems it's just postpone invocation by fix time interval
sure!!
https://github.com/hayes/just-debounce/blob/master/index.js implementation of it can be found here
it seems like the run function it what actually gets called
and where we're calling fn.apply with self
self is this, i think we're changing it because of the apply function