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
- Host: GitHub
- URL: https://github.com/kutyel/linq.ts
- Owner: kutyel
- License: mit
- Created: 2016-02-26T09:58:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T11:27:20.000Z (11 months ago)
- Last Synced: 2025-04-11T14:20:14.188Z (3 months ago)
- Topics: hacktoberfest, linq, linq-expressions, linq-extensions, linq-methods, linq-samples, linq-to-objects, linq-typescript, typescript
- Language: TypeScript
- Homepage: http://kutyel.github.io/linq.ts/
- Size: 1.42 MB
- Stars: 855
- Watchers: 26
- Forks: 74
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: license
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
- awesome-list - linq.ts
README
# LinQ for TypeScript
[](https://github.com/kutyel/linq.ts/actions/workflows/main.yml)
[](https://coveralls.io/github/kutyel/linq.ts?branch=master)
[](https://npmjs.com/package/linqts)
[](https://npmjs.com/package/linqts)
[](https://github.com/sponsors/kutyel)
[](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

## 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)