Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.
/ iterables Public archive

๐Ÿ” Iterable and AsyncIterable utils

License

Notifications You must be signed in to change notification settings

vangware/iterables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Coverage License NPM Version Open Issues

๐Ÿ” Iterable and AsyncIterable utils.

Usage

๐Ÿ“ฆ Node

Install @vangware/iterables as a dependency:

pnpm add @vangware/iterables
# or
npm install @vangware/iterables
# or
yarn add @vangware/iterables

Import it and use it:

import { map } from "@vangware/iterables";

const mapDouble = map((value: number) => value * 2);

[...mapDouble([1, 2, 3])]; // [2, 4, 6]

๐Ÿฆ• Deno

Import @vangware/iterables using the npm: prefix, and use it directly:

import { map } from "npm:@vangware/iterables";

const mapDouble = map((value: number) => value * 2);

[...mapDouble([1, 2, 3])]; // [2, 4, 6]

๐ŸŒŽ Browser

Import @vangware/iterables using esm.sh, and use it directly:

<script type="module">
	import { map } from "https://esm.sh/@vangware/iterables";

	const mapDouble = map(value => value * 2);

	[...mapDouble([1, 2, 3])]; // [2, 4, 6]
</script>

Useful links