Options
All
  • Public
  • Public/Protected
  • All
Menu

A sequence of items

Type parameters

  • TItem

Hierarchy

Implements

Index

Constructors

constructor

  • new SequenceImpl(_iterable: Iterable<TItem>): SequenceImpl

Methods

__@iterator

  • __@iterator(): Iterator<TItem>

concat

  • concat<TOther>(...others: Iterable<TOther>[]): Sequence<TItem | TOther>

distinct

every

filter

find

  • find(predicate: PredicateFn<TItem>): TItem | undefined

first

  • first(): TItem | undefined

flatMap

  • flatMap<TResultItem>(mapperFn: MapFn<TItem, TResultItem[]>): Sequence<TResultItem>

forEach

groupBy

includes

  • includes(searchItem: TItem): boolean

isEmpty

  • isEmpty(): boolean

last

  • last(): TItem | undefined

map

  • map<TResultItem>(mapFn: MapFn<TItem, TResultItem>): Sequence<TResultItem>

pick

  • pick<TKeys>(...keys: TKeys[]): Sequence<object>

prepend

  • prepend(...items: Iterable<TItem>[]): Sequence<TItem>

reduce

  • reduce<TResult>(callback: ReduceCallbackFn<TResult, TItem>, accumulator: TResult): TResult

reverse

skip

  • skip(howMany: number): Sequence<TItem>

skipWhile

some

sortBy

sortByDescending

sum

  • sum<TItem>(): number
  • sum<TItem>(): string
  • sum<TResult>(valueSelector: MapFn<TItem, TResult>): number
  • sum<TResult>(valueSelector: MapFn<TItem, TResult>): string

take

  • take(howMany: number): Sequence<TItem>

takeWhile

toArray

  • toArray(): TItem[]

toMap

  • toMap<TKey, TElement>(keySelectorFn: MapFn<TItem, TKey>, elementSelectorFn?: MapFn<TItem, TElement>): Map<TKey, TElement>
  • Type parameters

    • TKey

    • TElement

    Parameters

    • keySelectorFn: MapFn<TItem, TKey>
    • Optional elementSelectorFn: MapFn<TItem, TElement>

    Returns Map<TKey, TElement>

toObject

toSet

  • toSet(): Set<TItem>

toString

  • toString(separator?: string): string
  • Parameters

    • Default value separator: string = ","

    Returns string

without

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc