title: Debounce function that fires FIRST then debounces subsequent actions
body: <p>Every example of a debounce function that I've seen so far prevents an action from happening multiple times for a specified time span, and then executes the action one time when the specified time span has elapsed, then resets the timer. For example, the <code>$mdUtil.debounce</code> function that is included in Angular Material.</p>
  
  <p>What I'm looking for is a debounce function that executes the action <em>immediately</em> and then prevents <em>subsequent</em> multiple actions from firing until the timer resets. This has the benefit of the user not having to wait until the debounce time has elapsed until their action is taken while still achieving the goal of debouncing the actions.</p>
  
  <p>Has anyone seen one or had luck creating one?</p>
  
  <p><strong>Update</strong> After some more thought, the debounce function should fire the action immediately and then, <em>if the debounced function was called again within the debounce time span</em>, it should fire the action a second time before resetting the timer in case the second call changed any values.</p>