@aicacia/iter
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

ts-iter

license docs npm (scoped) build

aicacia iter

import { iter } from "@aicacia/iter";

const evens = iter([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
  .map((x) => x * x)
  .filter((x) => x % 2 === 0);

for (const value of evens) {
  console.log(value);
}

Readme

Keywords

Package Sidebar

Install

npm i @aicacia/iter

Weekly Downloads

17

Version

0.1.7

License

(MIT OR Apache-2.0)

Unpacked Size

181 kB

Total Files

97

Last publish

Collaborators

  • nathanfaucett