UNPKG

kitten-components

Version:
20 lines (16 loc) 418 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _arguments = arguments; var debounce = exports.debounce = function debounce(fn, msDelay) { var inDebounce = void 0; return function () { var context = undefined; var args = _arguments; clearTimeout(inDebounce); inDebounce = setTimeout(function () { return fn.apply(context, args); }, msDelay); }; };