https://github.com/kutyel/flow-linq
⚡️ Another LINQ implementation in JavaScript, but with Flow annotations!
https://github.com/kutyel/flow-linq
flow flowtype javascript linq linq-to-objects
Last synced: about 2 months ago
JSON representation
⚡️ Another LINQ implementation in JavaScript, but with Flow annotations!
- Host: GitHub
- URL: https://github.com/kutyel/flow-linq
- Owner: kutyel
- License: mit
- Created: 2016-11-08T11:59:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-15T15:14:08.000Z (over 6 years ago)
- Last Synced: 2025-03-04T08:22:29.746Z (3 months ago)
- Topics: flow, flowtype, javascript, linq, linq-to-objects
- Language: JavaScript
- Homepage:
- Size: 189 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flow-linq
[](https://github.com/feross/standard)
[](https://www.npmjs.org/package/flow-linq)
[](https://travis-ci.org/kutyel/flow-linq)
[](https://coveralls.io/github/kutyel/flow-linq)
[](https://david-dm.org/kutyel/flow-linq)
[](https://david-dm.org/kutyel/flow-linq#info=devDependencies)
[](https://www.npmjs.org/package/flow-linq)
[](https://paypal.me/flaviocorpa)Another LINQ implementation in JavaScript, but with Flow annotations!
[](https://flow.org/en/)
## Install
```sh
$ npm install --save flow-linq
```
## Usage
```ts
import { List } from 'flow-linq'type Cat = { age: number, name: string }
const cats: List = new List([
{ age: 8, name: 'Barley' },
{ age: 4, name: 'Boots' },
{ age: 1, name: 'Whiskers' },
])cats
.where(cat => cat.age > 3)
.select(cat => cat.name)
.toArray() // > ['Barley', 'Boots']
```
## Demo
```ts
// TODO: fancy gif here 😎
```
## LicenseMIT © [Flavio Corpa](http://flaviocorpa.com)