UNPKG

338 BJavaScriptView Raw
1import { IterableX } from './iterablex';
2/** @nocollapse */
3export function of(...args) {
4 return new OfIterable(args);
5}
6export class OfIterable extends IterableX {
7 constructor(args) {
8 super();
9 this._args = args;
10 }
11 *[Symbol.iterator]() {
12 yield* this._args;
13 }
14}
15
16//# sourceMappingURL=of.mjs.map