vue-cesium
Version:
Vue 3.x components for CesiumJS.
18 lines (16 loc) • 355 B
JavaScript
function throttle(fn, limit = 250) {
let wait = false, result;
return function() {
if (wait === false) {
wait = true;
setTimeout(() => {
wait = false;
}, limit);
result = fn.apply(this, arguments);
}
return result;
};
}
export { throttle as default };
//# sourceMappingURL=throttle.mjs.map
;