UNPKG

alm-search-01

Version:

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

25 lines (20 loc) 527 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.debounce = void 0; var _this = void 0; var debounce = function debounce(fn, delay, apiURL) { var timer; return function () { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var context = _this; clearTimeout(timer); timer = setTimeout(function () { fn.apply(context, args); }, delay); }; }; exports.debounce = debounce;