linq-functional
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Linq-functional

This library provides utility functions for defining queries against builtin JavaScript collections. For more information visit the docs page.

Installation

You can install the library using npm which is a package manager bundled with Node.js.

npm install linq-functional

Usage

To use the library import the query function and any of the pre-defined operators to define a query.

import { query, from, where } from 'linq-functional'

const numbers = [1, 2, 3, 4, 5]

const evenNumbers = query(from(numbers), where(item => item % 2 === 0))
for (const item of evenNumbers) {
  console.log(item)
} // Outputs: 2, 4

Package Sidebar

Install

npm i linq-functional

Weekly Downloads

83

Version

1.0.2

License

ISC

Unpacked Size

182 kB

Total Files

6

Last publish

Collaborators

  • koppa96