Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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)