'use strict';

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

const debounceFunction = (func, timeout = 100) => {
  let timer;
  return (...args) => {
    clearTimeout(timer);
    timer = setTimeout(() => {
      if (typeof func === "function") {
        func.apply(void 0, args);
      }
    }, timeout);
  };
};

exports.debounceFunction = debounceFunction;
