@d31t4/linq.ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

iterable-map-filter-reduce

Version

LINQ for JavaScript iterables.

Usage

const arrayIterable = Enumerable.from([1, 2, 3])
    .filter(x => x > 1)
    .map(x => 2 * x);

// or:
// arrayIterable = [1, 2, 3].toEnumerable()
//     .filter(x => x > 1)
//     .map(x => 2 * x);


const objectIterable = Enumerable.from({ x: 1, y: 2, z: 3 });

Package Sidebar

Install

npm i @d31t4/linq.ts

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

32.7 kB

Total Files

29

Last publish

Collaborators

  • d31t4