| 1 |
- const s=n=>JSON.stringify(n),l=n=>{try{return JSON.parse(n)}catch(r){return console.log(r),null}},c=(n,r,o)=>{if(typeof n!="function")return new Error("debounce func is not a function");typeof o===void 0&&(o=!1);let t;return function(...e){const u=this;t&&clearTimeout(t),o&&!t&&n.apply(u,e),t=setTimeout(function(){t=null,o||n.apply(u,e)},r)}};export{l as a,c as f,s as j};
|