Skip to content

Commit 27eef2a

Browse files
committed
docs: apply deno fmt
1 parent ecb19ec commit 27eef2a

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ console.log(it.next()); // { value: 1, done: false }
328328
console.log(it.next()); // { value: 2, done: false }
329329

330330
for (const value of it) {
331-
console.log(value);
331+
console.log(value);
332332
}
333333
// 3
334334
// 4
@@ -343,7 +343,7 @@ console.log(await it.next()); // { value: 1, done: false }
343343
console.log(await it.next()); // { value: 2, done: false }
344344

345345
for await (const value of it) {
346-
console.log(value);
346+
console.log(value);
347347
}
348348
// 3
349349
// 4
@@ -422,8 +422,8 @@ console.log(odd); // [1, 3, 5]
422422
import { partition } from "@core/iterutil/async/partition";
423423

424424
const [even, odd] = await partition(
425-
[1, 2, 3, 4, 5],
426-
(value) => value % 2 === 0,
425+
[1, 2, 3, 4, 5],
426+
(value) => value % 2 === 0,
427427
);
428428
console.log(even); // [2, 4]
429429
console.log(odd); // [1, 3, 5]
@@ -451,9 +451,9 @@ const sum = reduce([1, 2, 3, 4, 5], (acc, value) => acc + value);
451451
console.log(sum); // 15
452452

453453
const joined = reduce(
454-
[1, 2, 3, 4, 5],
455-
(acc, value) => acc + value.toString(),
456-
"",
454+
[1, 2, 3, 4, 5],
455+
(acc, value) => acc + value.toString(),
456+
"",
457457
);
458458
console.log(joined); // 12345
459459
```
@@ -465,9 +465,9 @@ const sum = await reduce([1, 2, 3, 4, 5], (acc, value) => acc + value);
465465
console.log(sum); // 15
466466

467467
const joined = await reduce(
468-
[1, 2, 3, 4, 5],
469-
(acc, value) => acc + value.toString(),
470-
"",
468+
[1, 2, 3, 4, 5],
469+
(acc, value) => acc + value.toString(),
470+
"",
471471
);
472472
console.log(joined); // 12345
473473
```
@@ -536,9 +536,9 @@ Converts an iterable to an array.
536536
import { toArray } from "@core/iterutil/to-array";
537537

538538
const arr = toArray(function* () {
539-
yield 1;
540-
yield 2;
541-
yield 3;
539+
yield 1;
540+
yield 2;
541+
yield 3;
542542
}());
543543
console.log(arr); // [1, 2, 3]
544544
```
@@ -547,16 +547,16 @@ console.log(arr); // [1, 2, 3]
547547
import { toArray } from "@core/iterutil/async/to-array";
548548

549549
const arr1 = await toArray(function* () {
550-
yield 1;
551-
yield 2;
552-
yield 3;
550+
yield 1;
551+
yield 2;
552+
yield 3;
553553
}());
554554
console.log(arr1); // [1, 2, 3]
555555

556556
const arr2 = await toArray(async function* () {
557-
yield 1;
558-
yield 2;
559-
yield 3;
557+
yield 1;
558+
yield 2;
559+
yield 3;
560560
}());
561561
console.log(arr2); // [1, 2, 3]
562562
```
@@ -584,8 +584,8 @@ const iter1 = uniq([1, 2, 2, 3, 3, 3]);
584584
console.log([...iter1]); // [1, 2, 3]
585585

586586
const iter2 = uniq(
587-
[1, 2, 3, 1, 2, 3, 10, 20, 30, 11, 21, 31],
588-
(v) => Math.floor(v / 10),
587+
[1, 2, 3, 1, 2, 3, 10, 20, 30, 11, 21, 31],
588+
(v) => Math.floor(v / 10),
589589
);
590590
console.log([...iter2]); // [1, 10, 20, 30]
591591
```
@@ -598,8 +598,8 @@ const iter1 = uniq([1, 2, 2, 3, 3, 3]);
598598
console.log(await toArray(iter1)); // [1, 2, 3]
599599

600600
const iter2 = uniq(
601-
[1, 2, 3, 1, 2, 3, 10, 20, 30, 11, 21, 31],
602-
(v) => Math.floor(v / 10),
601+
[1, 2, 3, 1, 2, 3, 10, 20, 30, 11, 21, 31],
602+
(v) => Math.floor(v / 10),
603603
);
604604
console.log(await toArray(iter2)); // [1, 10, 20, 30]
605605
```

0 commit comments

Comments
 (0)