a zip code crypto-currency system good for red ONLY

windowTime.js 916B

1234567891011121314151617181920212223242526
  1. import { async } from '../scheduler/async';
  2. import { isNumeric } from '../util/isNumeric';
  3. import { isScheduler } from '../util/isScheduler';
  4. import { windowTime as higherOrder } from '../operators/windowTime';
  5. export function windowTime(windowTimeSpan) {
  6. let scheduler = async;
  7. let windowCreationInterval = null;
  8. let maxWindowSize = Number.POSITIVE_INFINITY;
  9. if (isScheduler(arguments[3])) {
  10. scheduler = arguments[3];
  11. }
  12. if (isScheduler(arguments[2])) {
  13. scheduler = arguments[2];
  14. }
  15. else if (isNumeric(arguments[2])) {
  16. maxWindowSize = arguments[2];
  17. }
  18. if (isScheduler(arguments[1])) {
  19. scheduler = arguments[1];
  20. }
  21. else if (isNumeric(arguments[1])) {
  22. windowCreationInterval = arguments[1];
  23. }
  24. return higherOrder(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler)(this);
  25. }
  26. //# sourceMappingURL=windowTime.js.map