text: export const throttle = (func, delay) => {
    let throttled = false;
    // do something
  };
  
  export const debounce = (func, delay) => {
    let timeoutId = null;
    return (...arg) => {
      clearTimeout(timeoutId);
      timeoutId = setTimeout(func.bind(null, ...arg), delay);
    };
  };
  
  
  