Interface Grouping

Hierarchy

Index

Methods

Methods

public Aggregate(func: (a: any, b: any) => any): any

Parameters

  • func: (a: any, b: any) => any

Returns

any

public Aggregate(seed: any, func: (a: any, b: any) => any, resultSelector?: ($: any) => any): any

Parameters

  • seed: any
  • func: (a: any, b: any) => any
  • resultSelector?: ($: any) => any optional

Returns

any

public Aggregate(func: string): any

Parameters

  • func: string

Returns

any

public Aggregate(seed: any, func: string, resultSelector?: string): any

Parameters

  • seed: any
  • func: string
  • resultSelector?: string optional

Returns

any

public All(predicate: ($: any) => boolean): boolean

Parameters

  • predicate: ($: any) => boolean

Returns

boolean

public All(predicate: string): boolean

Parameters

  • predicate: string

Returns

boolean

public Alternate(value: any): Enumerable

Parameters

  • value: any

Returns

Enumerable

public Any(predicate?: ($: any) => boolean): boolean

Parameters

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

Returns

boolean

public Any(predicate?: string): boolean

Parameters

  • predicate?: string optional

Returns

boolean

public Average(selector?: ($: any) => number): number

Parameters

  • selector?: ($: any) => number optional

Returns

number

public Average(selector?: string): number

Parameters

  • selector?: string optional

Returns

number

public BufferWithCount(count: number): Enumerable

Parameters

  • count: number

Returns

Enumerable

public CascadeBreadthFirst(func: ($: any) => any[], resultSelector: (v: any, i: number) => any): Enumerable

Parameters

  • func: ($: any) => any[]
  • resultSelector: (v: any, i: number) => any

Returns

Enumerable

public CascadeBreadthFirst(func: string, resultSelector: string): Enumerable

Parameters

  • func: string
  • resultSelector: string

Returns

Enumerable

public CascadeDepthFirst(func: ($: any) => any[], resultSelector: (v: any, i: number) => any): Enumerable

Parameters

  • func: ($: any) => any[]
  • resultSelector: (v: any, i: number) => any

Returns

Enumerable

public CascadeDepthFirst(func: string, resultSelector: string): Enumerable

Parameters

  • func: string
  • resultSelector: string

Returns

Enumerable

public Catch(handler: (error: Error) => void): Enumerable

Parameters

  • handler: (error: Error) => void

Returns

Enumerable

public Catch(handler: string): Enumerable

Parameters

  • handler: string

Returns

Enumerable

public Concat(second: Array<any>): Enumerable

Parameters

  • second: Array<any>

Returns

Enumerable

public Concat(second: Enumerable): Enumerable

Parameters

Returns

Enumerable

public Contains(value: any, compareSelector?: ($: any) => any): boolean

Parameters

  • value: any
  • compareSelector?: ($: any) => any optional

Returns

boolean

public Contains(value: any, compareSelector?: string): boolean

Parameters

  • value: any
  • compareSelector?: string optional

Returns

boolean

public Count(predicate?: ($: any) => boolean): number

Parameters

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

Returns

number

public Count(predicate?: string): number

Parameters

  • predicate?: string optional

Returns

number

public DefaultIfEmpty(defaultValue: any): Enumerable

Parameters

  • defaultValue: any

Returns

Enumerable

public Distinct(compareSelector?: ($: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public Distinct(compareSelector?: string): Enumerable

Parameters

  • compareSelector?: string optional

Returns

Enumerable

public Do(action: ($: any, i: number) => void): Enumerable

Parameters

  • action: ($: any, i: number) => void

Returns

Enumerable

public Do(action: string): Enumerable

Parameters

  • action: string

Returns

Enumerable

public ElementAt(index: number): any

Parameters

  • index: number

Returns

any

public ElementAtOrDefault(index: number, defaultValue: any): any

Parameters

  • index: number
  • defaultValue: any

Returns

any

public Except(second: Array<any>, compareSelector?: ($: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public Except(second: Array<any>, compareSelector?: string): Enumerable

Parameters

  • second: Array<any>
  • compareSelector?: string optional

Returns

Enumerable

public Except(second: Enumerable, compareSelector?: ($: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public Except(second: Enumerable, compareSelector?: string): Enumerable

Parameters

  • second: Enumerable
  • compareSelector?: string optional

Returns

Enumerable

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

Parameters

  • finallyAction: () => void

Returns

Enumerable

public Finally(finallyAction: string): Enumerable

Parameters

  • finallyAction: string

Returns

Enumerable

public First(predicate?: ($: any) => boolean): any

Parameters

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

Returns

any

public First(predicate?: string): any

Parameters

  • predicate?: string optional

Returns

any

public FirstOrDefault(defaultValue: any, predicate?: ($: any) => boolean): any

Parameters

  • defaultValue: any
  • predicate?: ($: any) => boolean optional

Returns

any

public FirstOrDefault(defaultValue: any, predicate?: string): any

Parameters

  • defaultValue: any
  • predicate?: string optional

Returns

any

public Flatten(items?: Array<any>): Enumerable

Parameters

  • items?: Array<any> optional

Returns

Enumerable

public ForEach(action: ($: any, i: number) => void)

Parameters

  • action: ($: any, i: number) => void

public ForEach(func: ($: any, i: number) => boolean)

Parameters

  • func: ($: any, i: number) => boolean

public ForEach(action_func: string)

Parameters

  • action_func: string

public Force()

public GroupBy(keySelector: ($: any) => any, elementSelector?: ($: any) => any, resultSelector?: (key: any, e: any) => any, compareSelector?: ($: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public GroupBy(keySelector: string, elementSelector?: string, resultSelector?: string, compareSelector?: string): Enumerable

Parameters

  • keySelector: string
  • elementSelector?: string optional
  • resultSelector?: string optional
  • compareSelector?: string optional

Returns

Enumerable

public GroupJoin(inner: Array<any>, outerKeySelector: (v1: any) => any, innerKeySelector: (v1: any) => any, resultSelector: (v1: any, v2: linq.Enumerable) => any, compareSelector?: (v: any) => any): Enumerable

Parameters

  • inner: Array<any>
  • outerKeySelector: (v1: any) => any
  • innerKeySelector: (v1: any) => any
  • resultSelector: (v1: any, v2: linq.Enumerable) => any
  • compareSelector?: (v: any) => any optional

Returns

Enumerable

public GroupJoin(inner: Array<any>, outerKeySelector: string, innerKeySelector: string, resultSelector: string, compareSelector?: string): Enumerable

Parameters

  • inner: Array<any>
  • outerKeySelector: string
  • innerKeySelector: string
  • resultSelector: string
  • compareSelector?: string optional

Returns

Enumerable

public GroupJoin(inner: Enumerable, outerKeySelector: (v1: any) => any, innerKeySelector: (v1: any) => any, resultSelector: (v1: any, v2: linq.Enumerable) => any, compareSelector?: (v: any) => any): Enumerable

Parameters

  • inner: Enumerable
  • outerKeySelector: (v1: any) => any
  • innerKeySelector: (v1: any) => any
  • resultSelector: (v1: any, v2: linq.Enumerable) => any
  • compareSelector?: (v: any) => any optional

Returns

Enumerable

public GroupJoin(inner: Enumerable, outerKeySelector: string, innerKeySelector: string, resultSelector: string, compareSelector?: string): Enumerable

Parameters

  • inner: Enumerable
  • outerKeySelector: string
  • innerKeySelector: string
  • resultSelector: string
  • compareSelector?: string optional

Returns

Enumerable

public IndexOf(item: any): number

Parameters

  • item: any

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 Intersect(second: Array<any>, compareSelector?: ($: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public Intersect(second: Array<any>, compareSelector?: string): Enumerable

Parameters

  • second: Array<any>
  • compareSelector?: string optional

Returns

Enumerable

public Intersect(second: Enumerable, compareSelector?: ($: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public Intersect(second: Enumerable, compareSelector?: string): Enumerable

Parameters

  • second: Enumerable
  • compareSelector?: string optional

Returns

Enumerable

public Join(inner: Array<any>, outerKeySelector: (v1: any) => any, innerKeySelector: (v1: any) => any, resultSelector: (v1: any, v2: any) => any, compareSelector?: (v: any) => any): Enumerable

Parameters

  • inner: Array<any>
  • outerKeySelector: (v1: any) => any
  • innerKeySelector: (v1: any) => any
  • resultSelector: (v1: any, v2: any) => any
  • compareSelector?: (v: any) => any optional

Returns

Enumerable

public Join(inner: Array<any>, outerKeySelector: string, innerKeySelector: string, resultSelector: string, compareSelector?: string): Enumerable

Parameters

  • inner: Array<any>
  • outerKeySelector: string
  • innerKeySelector: string
  • resultSelector: string
  • compareSelector?: string optional

Returns

Enumerable

public Join(inner: Enumerable, outerKeySelector: (v1: any) => any, innerKeySelector: (v1: any) => any, resultSelector: (v1: any, v2: any) => any, compareSelector?: (v: any) => any): Enumerable

Parameters

  • inner: Enumerable
  • outerKeySelector: (v1: any) => any
  • innerKeySelector: (v1: any) => any
  • resultSelector: (v1: any, v2: any) => any
  • compareSelector?: (v: any) => any optional

Returns

Enumerable

public Join(inner: Enumerable, outerKeySelector: string, innerKeySelector: string, resultSelector: string, compareSelector?: string): Enumerable

Parameters

  • inner: Enumerable
  • outerKeySelector: string
  • innerKeySelector: string
  • resultSelector: string
  • compareSelector?: string optional

Returns

Enumerable

public Key(): any

Returns

any

public Last(predicate?: ($: any) => boolean): any

Parameters

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

Returns

any

public Last(predicate?: string): any

Parameters

  • predicate?: string optional

Returns

any

public LastIndexOf(item: any): number

Parameters

  • item: any

Returns

number

public LastOrDefault(defaultValue: any, predicate?: ($: any) => boolean): any

Parameters

  • defaultValue: any
  • predicate?: ($: any) => boolean optional

Returns

any

public LastOrDefault(defaultValue: any, predicate?: string): any

Parameters

  • defaultValue: any
  • predicate?: string optional

Returns

any

public Let(func: (e: linq.Enumerable) => linq.Enumerable): Enumerable

Parameters

  • func: (e: linq.Enumerable) => linq.Enumerable

Returns

Enumerable

public Max(selector?: ($: any) => number): number

Parameters

  • selector?: ($: any) => number optional

Returns

number

public Max(selector?: string): number

Parameters

  • selector?: string optional

Returns

number

public MaxBy(selector: ($: any) => number): any

Parameters

  • selector: ($: any) => number

Returns

any

public MaxBy(selector: string): any

Parameters

  • selector: string

Returns

any

public MemoizeAll(): Enumerable

Returns

Enumerable

public Min(selector?: ($: any) => number): number

Parameters

  • selector?: ($: any) => number optional

Returns

number

public Min(selector?: string): number

Parameters

  • selector?: string optional

Returns

number

public MinBy(selector: ($: any) => number): any

Parameters

  • selector: ($: any) => number

Returns

any

public MinBy(selector: string): any

Parameters

  • selector: string

Returns

any

public OfType(type: Function): Enumerable

Parameters

  • type: Function

Returns

Enumerable

public OrderBy(keySelector?: ($: any) => any): OrderedEnumerable

Parameters

  • keySelector?: ($: any) => any optional

Returns

OrderedEnumerable

public OrderBy(keySelector?: string): OrderedEnumerable

Parameters

  • keySelector?: string optional

Returns

OrderedEnumerable

public OrderByDescending(keySelector?: ($: any) => any): OrderedEnumerable

Parameters

  • keySelector?: ($: any) => any optional

Returns

OrderedEnumerable

public OrderByDescending(keySelector?: string): OrderedEnumerable

Parameters

  • keySelector?: string optional

Returns

OrderedEnumerable

public Pairwise(selector: (prev: any, next: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public Pairwise(selector: string): Enumerable

Parameters

  • selector: string

Returns

Enumerable

public PartitionBy(keySelector: ($: any) => any, elementSelector?: ($: any) => any, resultSelector?: (key: any, e: any) => any, compareSelector?: ($: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public PartitionBy(keySelector: string, elementSelector?: string, resultSelector?: string, compareSelector?: string): Enumerable

Parameters

  • keySelector: string
  • elementSelector?: string optional
  • resultSelector?: string optional
  • compareSelector?: string optional

Returns

Enumerable

public Reverse(): Enumerable

Returns

Enumerable

public Scan(func: (a: any, b: any) => any): Enumerable

Parameters

  • func: (a: any, b: any) => any

Returns

Enumerable

public Scan(func: string): Enumerable

Parameters

  • func: string

Returns

Enumerable

public Scan(seed: any, func: (a: any, b: any) => any, resultSelector?: ($: any) => any): Enumerable

Parameters

  • seed: any
  • func: (a: any, b: any) => any
  • resultSelector?: ($: any) => any optional

Returns

Enumerable

public Scan(seed: any, func: string, resultSelector?: string): Enumerable

Parameters

  • seed: any
  • func: string
  • resultSelector?: string optional

Returns

Enumerable

public Select(selector: ($: any, i: number) => any): Enumerable

Parameters

  • selector: ($: any, i: number) => any

Returns

Enumerable

public Select(selector: string): Enumerable

Parameters

  • selector: string

Returns

Enumerable

public SelectMany(collectionSelector: ($: any, i: number) => any[], resultSelector?: ($: any, item: any) => any): Enumerable

Parameters

  • collectionSelector: ($: any, i: number) => any[]
  • resultSelector?: ($: any, item: any) => any optional

Returns

Enumerable

public SelectMany(collectionSelector: ($: any, i: number) => linq.Enumerable, resultSelector?: ($: any, item: any) => any): Enumerable

Parameters

  • collectionSelector: ($: any, i: number) => linq.Enumerable
  • resultSelector?: ($: any, item: any) => any optional

Returns

Enumerable

public SelectMany(collectionSelector: string, resultSelector?: string): Enumerable

Parameters

  • collectionSelector: string
  • resultSelector?: string optional

Returns

Enumerable

public SequenceEqual(second: Array<any>, compareSelector?: ($: any) => any): boolean

Parameters

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

Returns

boolean

public SequenceEqual(second: Array<any>, compareSelector?: string): boolean

Parameters

  • second: Array<any>
  • compareSelector?: string optional

Returns

boolean

public SequenceEqual(second: Enumerable, compareSelector?: ($: any) => any): boolean

Parameters

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

Returns

boolean

public SequenceEqual(second: Enumerable, compareSelector?: string): boolean

Parameters

  • second: Enumerable
  • compareSelector?: string optional

Returns

boolean

public Share(): Enumerable

Returns

Enumerable

public Shuffle(): Enumerable

Returns

Enumerable

public Single(predicate?: ($: any) => boolean): any

Parameters

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

Returns

any

public Single(predicate?: string): any

Parameters

  • predicate?: string optional

Returns

any

public SingleOrDefault(defaultValue: any, predicate?: ($: any) => boolean): any

Parameters

  • defaultValue: any
  • predicate?: ($: any) => boolean optional

Returns

any

public SingleOrDefault(defaultValue: any, predicate?: string): any

Parameters

  • defaultValue: any
  • predicate?: string optional

Returns

any

public Skip(count: number): Enumerable

Parameters

  • count: number

Returns

Enumerable

public SkipWhile(predicate: ($: any, i: number) => boolean): Enumerable

Parameters

  • predicate: ($: any, i: number) => boolean

Returns

Enumerable

public SkipWhile(predicate: string): Enumerable

Parameters

  • predicate: string

Returns

Enumerable

public Sum(selector?: ($: any) => number): number

Parameters

  • selector?: ($: any) => number optional

Returns

number

public Sum(selector?: string): number

Parameters

  • selector?: string 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: ($: any, i: number) => boolean): Enumerable

Parameters

  • predicate: ($: any, i: number) => boolean

Returns

Enumerable

public TakeWhile(predicate: string): Enumerable

Parameters

  • predicate: string

Returns

Enumerable

public ToArray(): Array<any>

Returns

Array<any>

public ToDictionary(keySelector: ($: any) => any, elementSelector: ($: any) => any, compareSelector?: (key: any) => any): Dictionary

Parameters

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

Returns

Dictionary

public ToDictionary(keySelector: string, elementSelector: string, compareSelector?: string): Dictionary

Parameters

  • keySelector: string
  • elementSelector: string
  • compareSelector?: string optional

Returns

Dictionary

public ToJSON(replacer?: (key: any, value: any) => any, space?: number): string

Parameters

  • replacer?: (key: any, value: any) => any optional
  • space?: number optional

Returns

string

public ToJSON(replacer?: string, space?: number): string

Parameters

  • replacer?: string optional
  • space?: number optional

Returns

string

public ToLookup(keySelector: ($: any) => any, elementSelector?: ($: any) => any, compareSelector?: (key: any) => any): Lookup

Parameters

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

Returns

Lookup

public ToLookup(keySelector: string, elementSelector?: string, compareSelector?: string): Lookup

Parameters

  • keySelector: string
  • elementSelector?: string optional
  • compareSelector?: string optional

Returns

Lookup

public ToObject(keySelector: ($: any) => string, elementSelector: ($: any) => any): any

Parameters

  • keySelector: ($: any) => string
  • elementSelector: ($: any) => any

Returns

any

public ToObject(keySelector: string, elementSelector: string): any

Parameters

  • keySelector: string
  • elementSelector: string

Returns

any

public ToString(separator?: string, selector?: ($: any) => any): string

Parameters

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

Returns

string

public ToString(separator?: string, selector?: string): string

Parameters

  • separator?: string optional
  • selector?: string optional

Returns

string

public Trace(message?: string, selector?: ($: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public Trace(message?: string, selector?: string): Enumerable

Parameters

  • message?: string optional
  • selector?: string optional

Returns

Enumerable

public Union(second: Array<any>, compareSelector?: ($: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public Union(second: Array<any>, compareSelector?: string): Enumerable

Parameters

  • second: Array<any>
  • compareSelector?: string optional

Returns

Enumerable

public Union(second: Enumerable, compareSelector?: ($: any) => any): Enumerable

Parameters

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

Returns

Enumerable

public Union(second: Enumerable, compareSelector?: string): Enumerable

Parameters

  • second: Enumerable
  • compareSelector?: string optional

Returns

Enumerable

public Where(predicate: ($: any, i: number) => boolean): Enumerable

Parameters

  • predicate: ($: any, i: number) => boolean

Returns

Enumerable

public Where(predicate: string): Enumerable

Parameters

  • predicate: string

Returns

Enumerable

public Write(separator?: string, selector?: ($: any) => any)

Parameters

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

public Write(separator?: string, selector?: string)

Parameters

  • separator?: string optional
  • selector?: string optional

public WriteLine(selector?: ($: any) => any)

Parameters

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

public Zip(second: Array<any>, selector: (v1: any, v2: any, i: number) => any): Enumerable

Parameters

  • second: Array<any>
  • selector: (v1: any, v2: any, i: number) => any

Returns

Enumerable

public Zip(second: Array<any>, selector: string): Enumerable

Parameters

  • second: Array<any>
  • selector: string

Returns

Enumerable

public Zip(second: Enumerable, selector: (v1: any, v2: any, i: number) => any): Enumerable

Parameters

  • second: Enumerable
  • selector: (v1: any, v2: any, i: number) => any

Returns

Enumerable

public Zip(second: Enumerable, selector: string): Enumerable

Parameters

Returns

Enumerable