Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

of.js 808B

123456789101112131415161718192021222324252627
  1. /** PURE_IMPORTS_START _util_isScheduler,_fromArray,_empty,_scalar PURE_IMPORTS_END */
  2. import { isScheduler } from '../util/isScheduler';
  3. import { fromArray } from './fromArray';
  4. import { empty } from './empty';
  5. import { scalar } from './scalar';
  6. export function of() {
  7. var args = [];
  8. for (var _i = 0; _i < arguments.length; _i++) {
  9. args[_i] = arguments[_i];
  10. }
  11. var scheduler = args[args.length - 1];
  12. if (isScheduler(scheduler)) {
  13. args.pop();
  14. }
  15. else {
  16. scheduler = undefined;
  17. }
  18. switch (args.length) {
  19. case 0:
  20. return empty(scheduler);
  21. case 1:
  22. return scheduler ? fromArray(args, scheduler) : scalar(args[0]);
  23. default:
  24. return fromArray(args, scheduler);
  25. }
  26. }
  27. //# sourceMappingURL=of.js.map