_.debounce

_.debounce(func, [wait=0], [options={}]) source npm package Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked. The debounced function comes with a cancelmethod to cancel delayed func invocations and a flush method to immediately invoke them. Provide options to indicate whether func should be invoked on the leading and/or trailing edge of the waittimeout. The func is invoked with … Continue reading _.debounce