@micahlittle/linqjs
v1.0.5
Published
LINQ for JavaScript
Downloads
64
Maintainers
Readme
What is LinqJs?
LinqJs is a library that provides C#-style querying of objects in JavaScript.
Current Version
- 1.0.5
Features
- Aggregate
- All
- Any
- Contains
- Count
- Distinct
- ElementAt
- ElementAtOrDefault
- Except
- First
- FirstOrDefault
- GroupBy
- GroupJoin
- Intersect
- Join
- Last
- LastOrDefault
- Max
- Min
- OrderBy
- OrderByDescending
- Range
- Repeat
- Select
- SelectMany
- SequenceEqual
- Single
- SingleOrDefault
- Skip
- SkipWhile
- Take
- TakeWhile
- ThenBy
- ThenByDescending
- ToArray
- Union
- Where
- Zip
Getting Started
Installation
$ npm install --save @micahlittle/linqjs
Example
import { Enumerable } from '@micahlittle/linqjs';
Enumerable.from([3, 1, 5, 9, 7]).orderBy(x => x).toArray()
// produces [1, 3, 5, 7, 9]