Just another debounce. Usage import debounce, { debounce_leading } from 'debounce-js'function fnc() {}const fn = debounce(fnc, 200)