function throttle (fn, wait) {
  let t
  return function () {
    if (!t) {
      fn.apply(this, arguments)
      t = setTimeout(() => { t = null }, wait)
    }
  }
}
/**
 * Throttle function calls (No trailing)
 * @param {Function} fn Function to be throttled
 * @param {number} wait Throttle time
 */
Throttle function calls (No trailing)
@param {Function} fn Function to be throttled
@param {number} wait Throttle time
Throttle function calls ( No trailing ) @param { Function } fn Function to be throttled @param { number } wait Throttle time
function throttle (fn, wait) {
  let t
  return function () {
    if (!t) {
      fn.apply(this, arguments)
      t = setTimeout(() => { t = null }, wait)
    }
  }
}
function throttle ( fn , wait ) { let t return function ( ) { if ( ! t ) { fn . apply ( this , arguments ) t = setTimeout ( ( ) => { t = null } , wait ) } } }
Throttle function calls (No trailing)
 @param {Function} fn Function to be throttled
 @param {number} wait Throttle time
Throttle function calls ( No trailing ) @param { Function } fn Function to be throttled @param { number } wait Throttle time