Another LINQ implementation in JavaScript, but with Flow annotations!
$ npm install --save flow-linq
import { List } from 'flow-linq'
type Cat = { age: number, name: string }
const cats: List<Cat> = 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']
// TODO: fancy gif here 😎
MIT © Flavio Corpa