Skip to content

kutyel/flow-linq

Repository files navigation

flow-linq

Standard - JavaScript Style Guide

Node version Build Status Coverage Status Dependency status Dev Dependencies Status NPM Status Donate

Another LINQ implementation in JavaScript, but with Flow annotations!

flow-linq

Install

$ npm install --save flow-linq

Usage

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']

Demo

// TODO: fancy gif here 😎

License

MIT © Flavio Corpa

About

⚡️ Another LINQ implementation in JavaScript, but with Flow annotations!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published