react-with-breakpoints
Version:
Utility React component for altering the visual experience of responsive and lean webpages.
20 lines • 569 B
JavaScript
;
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });
var debounce = function (func, interval) {
var timeout;
return function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
var later = function () {
timeout = null;
func.apply(_this, args);
};
clearTimeout(timeout);
timeout = setTimeout(later, interval);
};
};
exports.default = debounce;
//# sourceMappingURL=debounce.js.map