Last change
on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
649 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | "use strict";
|
---|
| 2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
| 3 | var isScheduler_1 = require("../util/isScheduler");
|
---|
| 4 | var fromArray_1 = require("./fromArray");
|
---|
| 5 | var scheduleArray_1 = require("../scheduled/scheduleArray");
|
---|
| 6 | 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_1.isScheduler(scheduler)) {
|
---|
| 13 | args.pop();
|
---|
| 14 | return scheduleArray_1.scheduleArray(args, scheduler);
|
---|
| 15 | }
|
---|
| 16 | else {
|
---|
| 17 | return fromArray_1.fromArray(args);
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
| 20 | exports.of = of;
|
---|
| 21 | //# sourceMappingURL=of.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.