Debounce twin brother. Tip #16

Like twin brothers, Lodash's functions throttle and debounce my look alike, but they behave differently.

While debounce executes once after the elapsed milliseconds, throttle executes every elapsed milliseconds.

But one example makes it clear:

move the mouse over and stop moving

What're you using throttle for?

Like what you read? Give Marcos Neves a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.