3.2.5 ā€¢ Published 7 months ago

@lou.codes/iterables v3.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Coverage License NPM Version Open Issues Size

šŸ” 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

3.2.2

8 months ago

3.2.5

7 months ago

3.2.4

7 months ago

3.2.3

8 months ago

3.2.1

8 months ago

3.1.0

8 months ago

3.0.7

9 months ago

3.0.6

9 months ago

3.0.4

9 months ago

3.0.5

9 months ago

3.0.3

9 months ago

3.0.2

9 months ago

3.0.0

9 months ago

2.1.4

9 months ago

2.1.2

10 months ago

2.1.1

10 months ago

2.1.3

10 months ago

2.1.0

10 months ago

2.0.6

10 months ago

2.0.5

10 months ago

2.0.4

12 months ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

1.0.7

1 year ago

2.0.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago