Skip to content

Commit 0e46181

Browse files
fix(readme): fix lettable syntax
1 parent 6aefd45 commit 0e46181

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ import { map, filter } from 'ix/iterable/pipe';
112112

113113
// CommonJS
114114
const Iterable = require('ix/iterable').IterableX;
115-
require('ix/add/iterable-operators/chain');
116115
const { map, filter } = require('ix/iterable/pipe');
117116

118117
const results = of(1, 2, 3).pipe(
119118
filter(x => x % 2 === 0),
120-
map(x => x * x)));
119+
map(x => x * x)
120+
);
121121

122122
for (let item of results) {
123123
console.log(`Next: ${item}`);
@@ -254,7 +254,6 @@ import { filter, map } from 'ix/asynciterable/pipe';
254254
const AsyncIterable = require('ix/asynciterable').AsyncIterableX;
255255
const { filter, map } = require('ix/asynciterable/pipe');
256256

257-
258257
const source = async function* () {
259258
yield 1;
260259
yield 2;
@@ -264,7 +263,8 @@ const source = async function* () {
264263

265264
const results = from(source()).pipe(
266265
filter(async x => x % 2 === 0),
267-
map(async x => x * x)));
266+
map(async x => x * x)
267+
);
268268

269269
for await (let item of results) {
270270
console.log(`Next: ${item}`);

0 commit comments

Comments
 (0)