File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -112,12 +112,12 @@ import { map, filter } from 'ix/iterable/pipe';
112
112
113
113
// CommonJS
114
114
const Iterable = require (' ix/iterable' ).IterableX ;
115
- require (' ix/add/iterable-operators/chain' );
116
115
const { map , filter } = require (' ix/iterable/pipe' );
117
116
118
117
const results = of (1 , 2 , 3 ).pipe (
119
118
filter (x => x % 2 === 0 ),
120
- map (x => x * x)));
119
+ map (x => x * x)
120
+ );
121
121
122
122
for (let item of results) {
123
123
console .log (` Next: ${ item} ` );
@@ -254,7 +254,6 @@ import { filter, map } from 'ix/asynciterable/pipe';
254
254
const AsyncIterable = require (' ix/asynciterable' ).AsyncIterableX ;
255
255
const { filter , map } = require (' ix/asynciterable/pipe' );
256
256
257
-
258
257
const source = async function * () {
259
258
yield 1 ;
260
259
yield 2 ;
@@ -264,7 +263,8 @@ const source = async function* () {
264
263
265
264
const results = from (source ()).pipe (
266
265
filter (async x => x % 2 === 0 ),
267
- map (async x => x * x)));
266
+ map (async x => x * x)
267
+ );
268
268
269
269
for await (let item of results ) {
270
270
console .log (` Next: ${ item} ` );
You can’t perform that action at this time.
0 commit comments