test_lgq/niucloud/public/web/_nuxt/throttle.4fc9319f.js
2024-01-24 17:36:08 +08:00

2 lines
324 B
JavaScript

import{d as n}from"./debounce.7822d733.js";import{aL as l}from"./entry.539d3b49.js";var g="Expected a function";function u(t,a,r){var i=!0,e=!0;if(typeof t!="function")throw new TypeError(g);return l(r)&&(i="leading"in r?!!r.leading:i,e="trailing"in r?!!r.trailing:e),n(t,a,{leading:i,maxWait:a,trailing:e})}export{u as t};