%PDF- %PDF-
Direktori : /www/loslex_o/test/node_modules/alpinejs/src/utils/ |
Current File : /www/loslex_o/test/node_modules/alpinejs/src/utils/throttle.js |
export function throttle(func, limit) { let inThrottle return function() { let context = this, args = arguments if (! inThrottle) { func.apply(context, args) inThrottle = true setTimeout(() => inThrottle = false, limit) } } }