Note: If leading and trailing options are true, func is invoked on the trailing edge of the timeout only if the debounced function is invoked more than once during the wait timeout. Subsequent calls to the debounced function return the result of the last func invocation. The func is invoked with the last arguments provided to the debounced function. Provide options to indicate whether func should be invoked on the leading and/or trailing edge of the waittimeout. The debounced function comes with a cancelmethod to cancel delayed func invocations and a flush method to immediately invoke them. Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |