Linq-Typed
This library is fork from Flavio Corpa's great linqts library (https://github.com/kutyel/linq.ts). It is Linq implementation for Typescript by array prototyping, added some functions and rewrote some.
Usage - just import the file anywhere you need
...let arr: anyType;............result = arr;...
This library contains following functions:
: void; : void; Aggregate<U> any initialValue?: U: any; : boolean; : boolean; : List<T>; : number; Cast<T>: List<T>; : List<T>; : boolean; : number; : List<T>; : List<T>; : List<T>; : T; : T; : List<T>; : T; : T; : T; : void; GroupBy<TResult = T> any TResult: key: string: TResult ; GroupJoin<T>list: T any any any: List<any>; : List<T>; : number; : void | Error; : void | Error; : List<T>; Join<U>list: Array<U> any any any: List<any>; : T; : T; : number; : T; : number; : T; OfType<T>type: any: List<T>; : List<T>; : List<T>; : List<T>; : List<T>; : List<T>; : boolean; : List<T>; : void; : void; : void; Select<TOut> TOut: List<TOut>; SelectMany<TOut extends any> TOut: TOut; : boolean; : T; : T; : List<T>; : List<T>; : List<T>; : number; : List<T>; : List<T>; : List<T>; : T; ToDictionary<TKey TValue> TKey value?: TValue: List< Key: TKey; Value: T >; : List<T>; : any; : List<T>; : List<T>; Zip<U TOut>list: U TOut: TOut;
New in version 1.3.3
- Fix ElementAtOrDefault to return undefined instead of error when index is out of range
New in version 1.3.2
- Bugfix in TakeLast
New in version 1.3.1
- Updated readme. No update is necessary
New in version 1.3.0
- Bug fixes and performance improvements
New in version 1.2.6
- Bug fixes in RemoveAll() function
New in version 1.2.5
- Bug fixes
New in version 1.2.4
- Breaking changes. Now all array functions require .ToArray() for getting results, just like in c#. + Added new functions, Append, InserRange, SkipLast, TakeLast. Bug fixes, performance impovements. TimSort is default sorting algorithm now. Upgrade strictly recommended.
New in version 1.1.1
- Bug fixes, performance impovements. Upgrade strictly recommended