UNPKG

@goongmaps/goong-map-react

Version:

A fork of react-map-gl. React components for Goong JS

18 lines 401 B
export default function debounce(func, delay) { let _this; let _arguments; let timeout; const executeNow = () => { timeout = null; return func.apply(_this, _arguments); }; return function () { _this = this; _arguments = arguments; if (timeout) { clearTimeout(timeout); } timeout = setTimeout(executeNow, delay); }; } //# sourceMappingURL=debounce.js.map