UNPKG

@goongmaps/goong-map-react

Version:

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

24 lines (23 loc) 511 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = debounce; function debounce(func, delay) { var _this; var _arguments; var timeout; var executeNow = function 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