UNPKG

vue-cesium

Version:
18 lines (16 loc) 355 B
"use strict"; 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