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.
14 lines
413 B
14 lines
413 B
3 years ago
|
import { isScheduler } from '../util/isScheduler';
|
||
|
import { fromArray } from './fromArray';
|
||
|
import { scheduleArray } from '../scheduled/scheduleArray';
|
||
|
export function of(...args) {
|
||
|
let scheduler = args[args.length - 1];
|
||
|
if (isScheduler(scheduler)) {
|
||
|
args.pop();
|
||
|
return scheduleArray(args, scheduler);
|
||
|
}
|
||
|
else {
|
||
|
return fromArray(args);
|
||
|
}
|
||
|
}
|
||
|
//# sourceMappingURL=of.js.map
|