Skip to content

Throttle

Malexion edited this page Oct 31, 2016 · 2 revisions

__.throttle(func, [time])

  • func Function to execute once within the time period, can execute again after allotted time.
  • [time] [Optional] time in ms before execution of the function can happen again.

Examples

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

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