code: function throttle(func, /* istanbul ignore next */ limit = 200) {
    let wait = false;
  
    return () => {
      if (!wait) {
        func.call();
        wait = true;
        setTimeout(() => {
          wait = false;
        }, limit);
      }
    };
  }
docs: Prevents a function from firing too often.
  @param  {Function} func  the function to throttle
  @param  {Number}   limit the amount of milliseconds to wait between calls
  @return {Function}       function to check if the function should be called