UNPKG

react-convenience

Version:
24 lines (17 loc) 582 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.debounceEvent = void 0; var _lodash = require("lodash"); var debounceEvent = function debounceEvent() { var debouncedEvent = _lodash.debounce.apply(void 0, arguments); return function (e) { e.persist(); for (var _len = arguments.length, restArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { restArgs[_key - 1] = arguments[_key]; } return debouncedEvent.apply(void 0, [e].concat(restArgs)); }; }; exports.debounceEvent = debounceEvent;