An open API service indexing awesome lists of open source software.

https://github.com/kutyel/linq.ts

🌀LINQ for TypeScript
https://github.com/kutyel/linq.ts

hacktoberfest linq linq-expressions linq-extensions linq-methods linq-samples linq-to-objects linq-typescript typescript

Last synced: about 2 months ago
JSON representation

🌀LINQ for TypeScript

Awesome Lists containing this project

README

        

# LinQ for TypeScript

[![Build](https://github.com/kutyel/linq.ts/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/kutyel/linq.ts/actions/workflows/main.yml)
[![Coverage Status](https://coveralls.io/repos/github/kutyel/linq.ts/badge.svg?branch=master)](https://coveralls.io/github/kutyel/linq.ts?branch=master)
[![Downloads](https://img.shields.io/npm/dm/linqts.svg)](https://npmjs.com/package/linqts)
[![Version](https://img.shields.io/npm/v/linqts.svg)](https://npmjs.com/package/linqts)
[![Sponsors](https://img.shields.io/github/sponsors/kutyel)](https://github.com/sponsors/kutyel)
[![linqts](https://raw.githubusercontent.com/kutyel/linq/master/linqts.png)](http://www.typescriptlang.org)

## Install

```sh
$ npm i linqts
```

## Usage

```typescript
import { List } from 'linqts';

const arr = new List([1, 2, 3, 4, 5])
.Where(x => x > 3)
.Select(y => y * 2)
.ToArray(); // > [8, 10]

const query = people.Join(pets,
person => person,
pet => pet.Owner,
(person, pet) =>
({ OwnerName: person.Name, Pet: pet.Name }));
```

## Demo

![linqts.gif](https://raw.githubusercontent.com/kutyel/linq/master/linqts.gif)

## Documentation

If you do not know LinQ or just want to remember what is all about, have a look at the [docs](http://kutyel.github.io/linq.ts/docs/classes/list/index.html).

## Tests

```sh
$ npm t
```

Powered by [AVA](https://github.com/sindresorhus/ava).

## Contributors

Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):



Flavio Corpa

💻 💬 📖 👀

Luis Rogelio Hernández López

💻 🔧

Zsolt Kovács

💻

Mo Abbas

💻

Julián Salgado Napolitano

💻 🔧

mstrzoda

💻 🐛 ⚠️

Kyle Wascher

⚠️



James Richford

🔧

Natarajan Ganapathi

💻 🔧

Jonas Brekle

💻 🐛

LP

💻 ⚠️

Asier Ferro

💻 🔧

marlon-tucker

💻 🔧 📦

Misha Sulikashvili

💻 ⚠️



Saurav Sahu

🚇

Bob Cook

💵

Adrien

💻

This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!

## License

MIT © [Flavio Corpa](http://flaviocorpa.com)