text: function debounce(fn, time) {
    let timer;
  
    return function () {
      const fnCall = () => fn.apply(this, arguments);
  
      clearTimeout(timer);
      timer = setTimeout(fnCall, time);
    };
  }
  
  export { debounce };
  