Interface OrderedEnumerable

Hierarchy

Index

Methods

Methods

public aggregate(func: (prev: any, current: any) => any): any

Parameters

  • func: (prev: any, current: any) => any

Returns

any

public aggregate(seed: any, func: (prev: any, current: any) => any, resultSelector?: (last: any) => any): any

Parameters

  • seed: any
  • func: (prev: any, current: any) => any
  • resultSelector?: (last: any) => any optional

Returns

any

public all(predicate: (element: any) => boolean): boolean

Parameters

  • predicate: (element: any) => boolean

Returns

boolean

public alternate(alternateValue: any): Enumerable

Parameters

  • alternateValue: any

Returns

Enumerable

public alternate(alternateSequence: Array<any>): Enumerable

Parameters

  • alternateSequence: Array<any>

Returns

Enumerable

public alternate(alternateSequence: Enumerable): Enumerable

Parameters

Returns

Enumerable

public any(predicate?: (element: any) => boolean): boolean

Parameters

  • predicate?: (element: any) => boolean optional

Returns

boolean

public asEnumerable(): Enumerable

Returns

Enumerable

public average(selector?: (element: any) => any): number

Parameters

  • selector?: (element: any) => any optional

Returns

number

public buffer(count: number): Enumerable

Parameters

  • count: number

Returns

Enumerable

public catchError(handler: (exception: any) => void): Enumerable

Parameters

  • handler: (exception: any) => void

Returns

Enumerable

public choose(selector: (element: any, index: number) => any): Enumerable

Parameters

  • selector: (element: any, index: number) => any

Returns

Enumerable

public concat(sequences?: Array<any>): Enumerable

Parameters

  • sequences?: Array<any> optional

Returns

Enumerable

public constructor(getEnumerator: () => linqjs.IEnumerator): any

Parameters

  • getEnumerator: () => linqjs.IEnumerator

Returns

any

public contains(value: any, compareSelector: (element: any) => any): Enumerable

Parameters

  • value: any
  • compareSelector: (element: any) => any

Returns

Enumerable

public contains(value: any): Enumerable

Parameters

  • value: any

Returns

Enumerable

public count(predicate?: (element: any, index: number) => boolean): number

Parameters

  • predicate?: (element: any, index: number) => boolean optional

Returns

number

public createOrderedEnumerable(keySelector: (element: any) => any, descending: boolean): OrderedEnumerable

Parameters

  • keySelector: (element: any) => any
  • descending: boolean

Returns

OrderedEnumerable

public defaultIfEmpty(defaultValue?: any): Enumerable

Parameters

  • defaultValue?: any optional

Returns

Enumerable

public distinct(compareSelector?: (element: any) => any): Enumerable

Parameters

  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public distinctUntilChanged(compareSelector: (element: any) => any): Enumerable

Parameters

  • compareSelector: (element: any) => any

Returns

Enumerable

public doAction(action: (element: any, index: number) => void): Enumerable

Parameters

  • action: (element: any, index: number) => void

Returns

Enumerable

public doAction(action: (element: any, index: number) => boolean): Enumerable

Parameters

  • action: (element: any, index: number) => boolean

Returns

Enumerable

public elementAt(index: number): any

Parameters

  • index: number

Returns

any

public elementAtOrDefault(index: number, defaultValue?: any): any

Parameters

  • index: number
  • defaultValue?: any optional

Returns

any

public except(second: Array<any>, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: Array<any>
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public except(second: { length: number; [x: number]: any; }, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: { length: number; [x: number]: any; }
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public except(second: Enumerable, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: Enumerable
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public finallyAction(finallyAction: () => void): Enumerable

Parameters

  • finallyAction: () => void

Returns

Enumerable

public first(predicate?: (element: any, index: number) => boolean): any

Parameters

  • predicate?: (element: any, index: number) => boolean optional

Returns

any

public firstOrDefault(predicate?: (element: any, index: number) => boolean, defaultValue?: any): any

Parameters

  • predicate?: (element: any, index: number) => boolean optional
  • defaultValue?: any optional

Returns

any

public flatten(): Enumerable

Returns

Enumerable

public forEach(action: (element: any, index: number) => void)

Parameters

  • action: (element: any, index: number) => void

public forEach(action: (element: any, index: number) => boolean)

Parameters

  • action: (element: any, index: number) => boolean

public force()

public getEnumerator(): IEnumerator

Returns

IEnumerator

public groupBy(keySelector: (element: any) => any, elementSelector?: (element: any) => any, resultSelector?: (key: any, element: any) => any, compareSelector?: (element: any) => any): Enumerable

Parameters

  • keySelector: (element: any) => any
  • elementSelector?: (element: any) => any optional
  • resultSelector?: (key: any, element: any) => any optional
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public groupJoin(inner: Enumerable, outerKeySelector: (outer: any) => any, innerKeySelector: (inner: any) => any, resultSelector: (outer: any, inner: any) => any, compareSelector?: (obj: any) => any): Enumerable

Parameters

  • inner: Enumerable
  • outerKeySelector: (outer: any) => any
  • innerKeySelector: (inner: any) => any
  • resultSelector: (outer: any, inner: any) => any
  • compareSelector?: (obj: any) => any optional

Returns

Enumerable

public indexOf(item: any): number

Parameters

  • item: any

Returns

number

public indexOf(predicate: (element: any, index: number) => boolean): number

Parameters

  • predicate: (element: any, index: number) => boolean

Returns

number

public insert(index: number, second: Array<any>): Enumerable

Parameters

  • index: number
  • second: Array<any>

Returns

Enumerable

public insert(index: number, second: Enumerable): Enumerable

Parameters

Returns

Enumerable

public insert(index: number, second: { length: number; [x: number]: any; }): Enumerable

Parameters

  • index: number
  • second: { length: number; [x: number]: any; }

Returns

Enumerable

public intersect(second: Array<any>, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: Array<any>
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public intersect(second: { length: number; [x: number]: any; }, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: { length: number; [x: number]: any; }
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public intersect(second: Enumerable, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: Enumerable
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public isEmpty(): boolean

Returns

boolean

public join(inner: Enumerable, outerKeySelector: (outer: any) => any, innerKeySelector: (inner: any) => any, resultSelector: (outer: any, inner: any) => any, compareSelector?: (obj: any) => any): Enumerable

Parameters

  • inner: Enumerable
  • outerKeySelector: (outer: any) => any
  • innerKeySelector: (inner: any) => any
  • resultSelector: (outer: any, inner: any) => any
  • compareSelector?: (obj: any) => any optional

Returns

Enumerable

public last(predicate?: (element: any, index: number) => boolean): any

Parameters

  • predicate?: (element: any, index: number) => boolean optional

Returns

any

public lastIndexOf(item: any): number

Parameters

  • item: any

Returns

number

public lastIndexOf(predicate: (element: any, index: number) => boolean): number

Parameters

  • predicate: (element: any, index: number) => boolean

Returns

number

public lastOrDefault(predicate?: (element: any, index: number) => boolean, defaultValue?: any): any

Parameters

  • predicate?: (element: any, index: number) => boolean optional
  • defaultValue?: any optional

Returns

any

public letBind(func: (source: linqjs.Enumerable) => any[]): Enumerable

Parameters

  • func: (source: linqjs.Enumerable) => any[]

Returns

Enumerable

public letBind(func: (source: linqjs.Enumerable) => { length: number; [x: number]: any; }): Enumerable

Parameters

  • func: (source: linqjs.Enumerable) => { length: number; [x: number]: any; }

Returns

Enumerable

public letBind(func: (source: linqjs.Enumerable) => linqjs.Enumerable): Enumerable

Parameters

  • func: (source: linqjs.Enumerable) => linqjs.Enumerable

Returns

Enumerable

public log(selector?: (element: any) => void): Enumerable

Parameters

  • selector?: (element: any) => void optional

Returns

Enumerable

public max(selector?: (element: any) => any): number

Parameters

  • selector?: (element: any) => any optional

Returns

number

public maxBy(keySelector: (element: any) => any): any

Parameters

  • keySelector: (element: any) => any

Returns

any

public memoize(): DisposableEnumerable

Returns

DisposableEnumerable

public merge(second: Array<any>, resultSelector: (first: any, second: any, index: number) => any): Enumerable

Parameters

  • second: Array<any>
  • resultSelector: (first: any, second: any, index: number) => any

Returns

Enumerable

public merge(second: Enumerable, resultSelector: (first: any, second: any, index: number) => any): Enumerable

Parameters

  • second: Enumerable
  • resultSelector: (first: any, second: any, index: number) => any

Returns

Enumerable

public merge(second: { length: number; [x: number]: any; }, resultSelector: (first: any, second: any, index: number) => any): Enumerable

Parameters

  • second: { length: number; [x: number]: any; }
  • resultSelector: (first: any, second: any, index: number) => any

Returns

Enumerable

public merge(params?: Array<any>): Enumerable

Parameters

  • params?: Array<any> optional

Returns

Enumerable

public min(selector?: (element: any) => any): number

Parameters

  • selector?: (element: any) => any optional

Returns

number

public minBy(keySelector: (element: any) => any): any

Parameters

  • keySelector: (element: any) => any

Returns

any

public ofType(type: any): Enumerable

Parameters

  • type: any

Returns

Enumerable

public orderBy(keySelector: (element: any) => any): OrderedEnumerable

Parameters

  • keySelector: (element: any) => any

Returns

OrderedEnumerable

public orderByDescending(keySelector: (element: any) => any): OrderedEnumerable

Parameters

  • keySelector: (element: any) => any

Returns

OrderedEnumerable

public pairwise(selector: (prev: any, current: any) => any): Enumerable

Parameters

  • selector: (prev: any, current: any) => any

Returns

Enumerable

public partitionBy(keySelector: (element: any) => any, elementSelector?: (element: any) => any, resultSelector?: (key: any, element: any) => any, compareSelector?: (element: any) => any): Enumerable

Parameters

  • keySelector: (element: any) => any
  • elementSelector?: (element: any) => any optional
  • resultSelector?: (key: any, element: any) => any optional
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public reverse(): Enumerable

Returns

Enumerable

public scan(func: (prev: any, current: any) => any): Enumerable

Parameters

  • func: (prev: any, current: any) => any

Returns

Enumerable

public scan(seed: any, func: (prev: any, current: any) => any): Enumerable

Parameters

  • seed: any
  • func: (prev: any, current: any) => any

Returns

Enumerable

public select(selector: (element: any, index: number) => any): Enumerable

Parameters

  • selector: (element: any, index: number) => any

Returns

Enumerable

public selectMany(collectionSelector: (element: any, index: number) => any[], resultSelector?: (outer: any, inner: any) => any): Enumerable

Parameters

  • collectionSelector: (element: any, index: number) => any[]
  • resultSelector?: (outer: any, inner: any) => any optional

Returns

Enumerable

public selectMany(collectionSelector: (element: any, index: number) => linqjs.Enumerable, resultSelector?: (outer: any, inner: any) => any): Enumerable

Parameters

  • collectionSelector: (element: any, index: number) => linqjs.Enumerable
  • resultSelector?: (outer: any, inner: any) => any optional

Returns

Enumerable

public selectMany(collectionSelector: (element: any, index: number) => { length: number; [x: number]: any; }, resultSelector?: (outer: any, inner: any) => any): Enumerable

Parameters

  • collectionSelector: (element: any, index: number) => { length: number; [x: number]: any; }
  • resultSelector?: (outer: any, inner: any) => any optional

Returns

Enumerable

public sequenceEqual(second: Array<any>, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: Array<any>
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public sequenceEqual(second: { length: number; [x: number]: any; }, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: { length: number; [x: number]: any; }
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public sequenceEqual(second: Enumerable, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: Enumerable
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public share(): DisposableEnumerable

Returns

DisposableEnumerable

public shuffle(): Enumerable

Returns

Enumerable

public single(predicate?: (element: any, index: number) => boolean): any

Parameters

  • predicate?: (element: any, index: number) => boolean optional

Returns

any

public singleOrDefault(predicate?: (element: any, index: number) => boolean, defaultValue?: any): any

Parameters

  • predicate?: (element: any, index: number) => boolean optional
  • defaultValue?: any optional

Returns

any

public skip(count: number): Enumerable

Parameters

  • count: number

Returns

Enumerable

public skipWhile(predicate: (element: any, index: number) => boolean): Enumerable

Parameters

  • predicate: (element: any, index: number) => boolean

Returns

Enumerable

public sum(selector?: (element: any) => any): number

Parameters

  • selector?: (element: any) => any optional

Returns

number

public take(count: number): Enumerable

Parameters

  • count: number

Returns

Enumerable

public takeExceptLast(count?: number): Enumerable

Parameters

  • count?: number optional

Returns

Enumerable

public takeFromLast(count: number): Enumerable

Parameters

  • count: number

Returns

Enumerable

public takeWhile(predicate: (element: any, index: number) => boolean): Enumerable

Parameters

  • predicate: (element: any, index: number) => boolean

Returns

Enumerable

public thenBy(keySelector: (element: any) => any): OrderedEnumerable

Parameters

  • keySelector: (element: any) => any

Returns

OrderedEnumerable

public thenByDescending(keySelector: (element: any) => any): OrderedEnumerable

Parameters

  • keySelector: (element: any) => any

Returns

OrderedEnumerable

public toArray(): Array<any>

Returns

Array<any>

public toDictionary(keySelector: (element: any) => any, elementSelector?: (element: any) => any, compareSelector?: (element: any) => any): Dictionary

Parameters

  • keySelector: (element: any) => any
  • elementSelector?: (element: any) => any optional
  • compareSelector?: (element: any) => any optional

Returns

Dictionary

public toJSONString(replacer: (key: string, value: any) => any): string

Parameters

  • replacer: (key: string, value: any) => any

Returns

string

public toJSONString(replacer: Array<any>): string

Parameters

  • replacer: Array<any>

Returns

string

public toJSONString(replacer: (key: string, value: any) => any, space: any): string

Parameters

  • replacer: (key: string, value: any) => any
  • space: any

Returns

string

public toJSONString(replacer: Array<any>, space: any): string

Parameters

  • replacer: Array<any>
  • space: any

Returns

string

public toJoinedString(separator?: string, selector?: (element: any, index: number) => any): string

Parameters

  • separator?: string optional
  • selector?: (element: any, index: number) => any optional

Returns

string

public toLookup(keySelector: (element: any) => any, elementSelector?: (element: any) => any, compareSelector?: (element: any) => any): Lookup

Parameters

  • keySelector: (element: any) => any
  • elementSelector?: (element: any) => any optional
  • compareSelector?: (element: any) => any optional

Returns

Lookup

public toObject(keySelector: (element: any) => any, elementSelector?: (element: any) => any): Object

Parameters

  • keySelector: (element: any) => any
  • elementSelector?: (element: any) => any optional

Returns

Object

public trace(message?: string, selector?: (element: any) => void): Enumerable

Parameters

  • message?: string optional
  • selector?: (element: any) => void optional

Returns

Enumerable

public traverseBreadthFirst(func: (element: any) => linqjs.Enumerable, resultSelector?: (element: any, nestLevel: number) => any): Enumerable

Parameters

  • func: (element: any) => linqjs.Enumerable
  • resultSelector?: (element: any, nestLevel: number) => any optional

Returns

Enumerable

public traverseDepthFirst(func: (element: any) => linqjs.Enumerable, resultSelector?: (element: any, nestLevel: number) => any): Enumerable

Parameters

  • func: (element: any) => linqjs.Enumerable
  • resultSelector?: (element: any, nestLevel: number) => any optional

Returns

Enumerable

public union(second: Array<any>, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: Array<any>
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public union(second: { length: number; [x: number]: any; }, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: { length: number; [x: number]: any; }
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public union(second: Enumerable, compareSelector?: (element: any) => any): Enumerable

Parameters

  • second: Enumerable
  • compareSelector?: (element: any) => any optional

Returns

Enumerable

public weightedSample(weightSelector: (element: any) => any): Enumerable

Parameters

  • weightSelector: (element: any) => any

Returns

Enumerable

public where(predicate: (element: any, index: number) => boolean): Enumerable

Parameters

  • predicate: (element: any, index: number) => boolean

Returns

Enumerable

public write(separator?: string, selector?: (element: any) => any)

Parameters

  • separator?: string optional
  • selector?: (element: any) => any optional

public writeLine(selector?: (element: any) => any)

Parameters

  • selector?: (element: any) => any optional

public zip(second: Array<any>, resultSelector: (first: any, second: any, index: number) => any): Enumerable

Parameters

  • second: Array<any>
  • resultSelector: (first: any, second: any, index: number) => any

Returns

Enumerable

public zip(second: Enumerable, resultSelector: (first: any, second: any, index: number) => any): Enumerable

Parameters

  • second: Enumerable
  • resultSelector: (first: any, second: any, index: number) => any

Returns

Enumerable

public zip(second: { length: number; [x: number]: any; }, resultSelector: (first: any, second: any, index: number) => any): Enumerable

Parameters

  • second: { length: number; [x: number]: any; }
  • resultSelector: (first: any, second: any, index: number) => any

Returns

Enumerable

public zip(params?: Array<any>): Enumerable

Parameters

  • params?: Array<any> optional

Returns

Enumerable