3.1.0 ā¢ Published 7 days ago
@lou.codes/iterables v3.1.0
š Iterable and AsyncIterable utils.
Usage
By default, all utils are meant to be used with Iterable
values, to use
AsyncIterable
values the functions have to be imported from
@lou.codes/iterables/asynchronous
.
š¦ Node
Install @lou.codes/iterables
as a dependency:
pnpm add @lou.codes/iterables
# or
npm install @lou.codes/iterables
# or
yarn add @lou.codes/iterables
Import it and use it:
import { iterableToArray, map } from "@lou.codes/iterables";
const mapDouble = map((value: number) => value * 2);
iterableToArray(mapDouble([1, 2, 3])); // [2, 4, 6]
š¦ Deno
Import @lou.codes/iterables
using the npm:
prefix, and use it directly:
import { iterableToArray, map } from "npm:@lou.codes/iterables";
const mapDouble = map((value: number) => value * 2);
iterableToArray(mapDouble([1, 2, 3])); // [2, 4, 6]
š Browser
Import @lou.codes/iterables
using esm.sh, and use it directly:
<script type="module">
import { iterableToArray, map } from "https://esm.sh/@lou.codes/iterables";
const mapDouble = map(value => value * 2);
iterableToArray(mapDouble([1, 2, 3])); // [2, 4, 6]
</script>
Useful links
- š Documentation: TypeDoc generated documentation.
- ā³ Changelog: List of changes between versions.
- ā Tests Coverage: Coveralls page with tests coverage.
3.1.0
7 days ago
3.0.7
8 days ago
3.0.6
11 days ago
3.0.4
25 days ago
3.0.5
24 days ago
3.0.3
26 days ago
3.0.2
1 month ago
3.0.0
1 month ago
2.1.4
1 month ago
2.1.2
1 month ago
2.1.1
1 month ago
2.1.3
1 month ago
2.1.0
1 month ago
2.0.6
2 months ago
2.0.5
2 months ago
2.0.4
4 months ago
2.0.3
4 months ago
2.0.2
4 months ago
2.0.1
4 months ago
1.0.7
5 months ago
2.0.0
5 months ago
1.0.6
5 months ago
1.0.5
5 months ago
1.0.4
5 months ago
1.0.3
5 months ago
1.0.2
5 months ago
1.0.1
6 months ago
1.0.0
6 months ago