UNPKG

simple-react-ui

Version:

a simple react component library written in TypeScript+ React.js

17 lines 480 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function throttle(f, timeout, thisObj) { var canRun = true; return function () { var args = arguments; if (!canRun) { return; } else { canRun = false; setTimeout(function () { canRun = true; f.call(thisObj, args); }, timeout); } }; } exports.throttle = throttle; //# sourceMappingURL=throttle.js.map