param fnc param time export const debounce = ( ) => { let timeout ; return ( fnc , time ) => { const functionCall = ( ... args ) => fnc . apply ( this , args ) ; clearTimeout ( timeout ) ; timeout = setTimeout ( functionCall , time ) ; } ; } ;