Skip to content

Debounce

Malexion edited this page Oct 31, 2016 · 2 revisions

__.debounce(func, [time])

  • func Function to execute at the end of the debounce period.
  • [time] [Optional] time in ms before execution of the function can happen.

Examples

var myFunc = __.debounce(() => {
   console.log('Hello World');
}, 200);

__.all(5, x => myFunc());
Clone this wiki locally