autosave/throttle
@ckeditor/ckeditor5-autosave/src/throttle
module
Filtering
Functions
-
throttle( fn, wait )
static
Throttle function - a helper that provides ability to specify minimum time gap between calling the original function. Comparing to the lodash implementation, this provides an information if calling the throttled function will result in calling the original function.
Parameters
fn : function
Original function that will be called.
wait : Number
Minimum amount of time between original function calls.