Creates a function that waits until calls stop for wait milliseconds, then calls fn
once with the latest arguments.
Use it for events that fire in bursts, such as typing or resizing, when only the final
state matters. To run at a steady rate during a burst instead, use throttle.
Creates a function that waits until calls stop for
waitmilliseconds, then callsfnonce with the latest arguments.Use it for events that fire in bursts, such as typing or resizing, when only the final state matters. To run at a steady rate during a burst instead, use
throttle.