This package has been deprecated

Author message:

🚚 @vangware/iterables is now @lou.codes/iterables

@vangware/iterables
TypeScript icon, indicating that this package has built-in type declarations

3.1.30Β β€’Β PublicΒ β€’Β Published

Coverage License NPM Version Open Issues Size

πŸ” 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 { iterableToArray, map } from "@vangware/iterables";

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

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

πŸ¦• Deno

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

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

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

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

🌎 Browser

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

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

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

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

Package Sidebar

Install

npm i @vangware/iterables

Weekly Downloads

86

Version

3.1.30

License

MIT

Unpacked Size

85.8 kB

Total Files

89

Last publish

Collaborators

  • loucyx