Hierarchy

  • List<any>
    • StreamIterator

Indexable

[n: number]: any

Index

Constructors

constructor

Properties

_index

_index: number

_outer

length

length: number

Gets or sets the length of the array. This is a number one higher than the highest index in the array.

Accessors

countItems

  • get countItems(): number

current

  • get current(): any
  • Returns any

Methods

add

  • add(item: any): void
  • Parameters

    • item: any

    Returns void

addRange

  • addRange(items: List<any> | any[]): void

aggregate

  • aggregate(func: function): any
  • Applies an accumulator function over a sequence.

    Parameters

    • func: function

      An accumulator function to be invoked on each element.

        • (av: any, e: any): any
        • Parameters

          • av: any
          • e: any

          Returns any

    Returns any

    The final accumulator value.

aggregate2

  • aggregate2(seed: any, func: function): any
  • Parameters

    • seed: any
    • func: function
        • (av: any, e: any): any
        • Parameters

          • av: any
          • e: any

          Returns any

    Returns any

all

  • all(predicate?: function, __this?: any): boolean
  • Parameters

    • Optional predicate: function
        • (value: any): boolean
        • Parameters

          • value: any

          Returns boolean

    • Optional __this: any

    Returns boolean

any

  • any(predicate?: function, __this?: any): boolean
  • Determines whether any element of a sequence satisfies a condition.

    Parameters

    • Optional predicate: function

      A function to test each element for a condition.

        • (value: any): boolean
        • Parameters

          • value: any

          Returns boolean

    • Optional __this: any

    Returns boolean

    true if any elements in the source sequence pass the test in the specified predicate; otherwise, false.

at

  • at(index: number): any | undefined
  • Takes an integer value and returns the item at that index, allowing for positive and negative integers. Negative integers count back from the last item in the array.

    Parameters

    • index: number

    Returns any | undefined

average

  • average(selector?: function): number
  • Computes the average of a sequence of System.Int64 values that are obtained by invoking a transform function on each element of the input sequence.

    selector

    A transform function to apply to each element. // // Type parameters: // TSource: // The type of the elements of source. //

    Parameters

    • Optional selector: function
        • (value: any): number
        • Parameters

          • value: any

          Returns number

    Returns number

    The average of the sequence of values.

cast

  • cast<S>(): List<S>
  • Converts the elements of an List to the specified type.

    Type parameters

    • S

    Returns List<S>

    An List that contains each element of the source sequence converted to the specified type.

clear

  • clear(): void
  • Removes all elements from the List.

    Returns void

concat

  • Concatenates two sequences.

    Parameters

    • second: List<any>

      The sequence to concatenate to the first sequence.

    Returns List<any>

    An List that contains the concatenated elements of the two input sequences.

contains

  • contains(item: any): boolean
  • Determines whether an element is in the List.

    Parameters

    • item: any

      The object to locate in the List. The value can be null for reference types.

    Returns boolean

    true if item is found in the List otherwise, false.

copyTo

  • copyTo(array: any[], index?: number): void
  • Parameters

    • array: any[]
    • Default value index: number = 0

    Returns void

count2

  • count2(selector?: function, __this?: any): number
  • Parameters

    • Optional selector: function
        • (value: any): boolean
        • Parameters

          • value: any

          Returns boolean

    • Optional __this: any

    Returns number

defaultIfEmpty

  • defaultIfEmpty(): List<any>

dispose

  • dispose(): void
  • Returns void

distinct

  • distinct(): List<any>
  • Returns distinct elements from a sequence by using the default equality comparer to compare values.

    Returns List<any>

    An List that contains distinct elements from the source sequence.

every

  • every<S>(predicate: function, thisArg?: any): this
  • every(predicate: function, thisArg?: any): boolean
  • Determines whether all the members of an array satisfy the specified test.

    Type parameters

    • S: any

    Parameters

    • predicate: function

      A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

        • (value: any, index: number, array: any[]): value
        • Parameters

          • value: any
          • index: number
          • array: any[]

          Returns value

    • Optional thisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

    Returns this

  • Determines whether all the members of an array satisfy the specified test.

    Parameters

    • predicate: function

      A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

        • (value: any, index: number, array: any[]): unknown
        • Parameters

          • value: any
          • index: number
          • array: any[]

          Returns unknown

    • Optional thisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

    Returns boolean

except

exists

  • exists(predicate: function): boolean
  • Parameters

    • predicate: function
        • (value: any): boolean
        • Parameters

          • value: any

          Returns boolean

    Returns boolean

filter

  • filter<S>(predicate: function, thisArg?: any): S[]
  • filter(predicate: function, thisArg?: any): any[]
  • Returns the elements of an array that meet the condition specified in a callback function.

    Type parameters

    • S: any

    Parameters

    • predicate: function

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

        • (value: any, index: number, array: any[]): value
        • Parameters

          • value: any
          • index: number
          • array: any[]

          Returns value

    • Optional thisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

    Returns S[]

  • Returns the elements of an array that meet the condition specified in a callback function.

    Parameters

    • predicate: function

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

        • (value: any, index: number, array: any[]): unknown
        • Parameters

          • value: any
          • index: number
          • array: any[]

          Returns unknown

    • Optional thisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

    Returns any[]

findIndex2

  • findIndex2(match: function): number
  • Parameters

    • match: function
        • (value: any): boolean
        • Parameters

          • value: any

          Returns boolean

    Returns number

findLastIndex2

  • findLastIndex2(match: function): number
  • Parameters

    • match: function
        • (value: any): boolean
        • Parameters

          • value: any

          Returns boolean

    Returns number

first

  • first(selector?: function, __this?: any): any
  • Parameters

    • Optional selector: function
        • (value: any): boolean
        • Parameters

          • value: any

          Returns boolean

    • Optional __this: any

    Returns any

firstOrDefault

  • firstOrDefault(predicate?: function): any
  • Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.

    Parameters

    • Optional predicate: function

      A function to test each element for a condition.

        • (value: any): boolean
        • Parameters

          • value: any

          Returns boolean

    Returns any

    if source is empty or if no element passes the test specified by predicate; otherwise, the first element in source that passes the test specified by predicate.

firstOrDefaultAsNullableNumber

  • firstOrDefaultAsNullableNumber(): number | null

firstOrDefaultAsNumber

  • firstOrDefaultAsNumber(): number

forEach

  • forEach(callbackfn: function, thisArg?: any): void
  • Performs the specified action for each element in an array.

    Parameters

    • callbackfn: function

      A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

        • (value: any, index: number, array: any[]): void
        • Parameters

          • value: any
          • index: number
          • array: any[]

          Returns void

    • Optional thisArg: any

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

    Returns void

fullOuterJoin

  • fullOuterJoin<K, V, Z>(inner: List<V>, outerKeySelector: function, innerKeySelector: function, resultSelector: function, __this?: any): List<Z>
  • Type parameters

    • K

    • V

    • Z

    Parameters

    • inner: List<V>
    • outerKeySelector: function
        • (value: any): K
        • Parameters

          • value: any

          Returns K

    • innerKeySelector: function
        • (value: V): K
        • Parameters

          • value: V

          Returns K

    • resultSelector: function
        • (value1: any, value2: V): Z
        • Parameters

          • value1: any
          • value2: V

          Returns Z

    • Optional __this: any

    Returns List<Z>

getArrayItem

  • getArrayItem(itemIndex: number): List<any[]>

getByIndex

  • getByIndex(index: number, keys?: string[]): any
  • Parameters

    • index: number
    • Default value keys: string[] = null

    Returns any

getKeys

  • getKeys(): string[]

getRange

  • getRange(index: number, count: number): List<any>
  • Parameters

    • index: number
    • count: number

    Returns List<any>

groupBy

  • groupBy<K>(keySelector: function, __this?: any): List<Grouping<K, any>>
  • Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.

    Type parameters

    • K

    Parameters

    • keySelector: function

      A function to extract the key for each element.

        • (value: any): K
        • Parameters

          • value: any

          Returns K

    • Optional __this: any

    Returns List<Grouping<K, any>>

    An IEnumerable<IGrouping<TKey, TSource>> in C# or IEnumerable(Of IGrouping(Of TKey, TSource)) in Visual Basic where each System.Linq.IGrouping`2 object contains a collection of objects and a key.

groupBy2

  • Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.

    Type parameters

    • K

    Parameters

    • keySelector: function

      A function to extract the key for each element.

        • (value: any): K
        • Parameters

          • value: any

          Returns K

    • Optional comparer: IEqualityComparer<K>

      An System.Collections.Generic.IEqualityComparer`1 to compare keys.

    • Optional __this: any

    Returns List<Grouping<K, any>>

    An IEnumerable<IGrouping<TKey, TSource>> in C# or IEnumerable(Of IGrouping(Of TKey, TSource)) in Visual Basic where each System.Linq.IGrouping`2 object contains a collection of objects and a key.

groupJoin

  • groupJoin<U, K, V>(inner: List<U>, outerKeySelector: function, innerKeySelector: function, resultSelector: function, __this?: any): List<V>
  • Correlates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.

    Type parameters

    • U

    • K

    • V

    Parameters

    • inner: List<U>

      The sequence to join to the first sequence.

    • outerKeySelector: function

      A function to extract the join key from each element of the first sequence.

        • (value: any): K
        • Parameters

          • value: any

          Returns K

    • innerKeySelector: function

      A function to extract the join key from each element of the second sequence.

        • (value: U): K
        • Parameters

          • value: U

          Returns K

    • resultSelector: function

      A function to create a result element from an element from the first sequence and a collection of matching elements from the second sequence.

        • (value1: any, value2: List<U>): V
        • Parameters

          • value1: any
          • value2: List<U>

          Returns V

    • Optional __this: any

    Returns List<V>

    An List that contains elements of type V that are obtained by performing a grouped join on two sequences.

indexOf

  • indexOf(searchElement: any, fromIndex?: number): number
  • Returns the index of the first occurrence of a value in an array, or -1 if it is not present.

    Parameters

    • searchElement: any

      The value to locate in the array.

    • Optional fromIndex: number

      The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

    Returns number

insert

  • insert(index: number, item: any): void
  • Parameters

    • index: number
    • item: any

    Returns void

join

  • join(separator?: string): string
  • Adds all the elements of an array into a string, separated by the specified separator string.

    Parameters

    • Optional separator: string

      A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.

    Returns string

join2

  • join2<U, K, V>(inner: List<U>, outerKeySelector: function, innerKeySelector: function, resultSelector: function, __this?: any): List<V>
  • Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.

    Type parameters

    • U

    • K

    • V

    Parameters

    • inner: List<U>

      The sequence to join to the first sequence.

    • outerKeySelector: function

      A function to extract the join key from each element of the first sequence.

        • (value: any): K
        • Parameters

          • value: any

          Returns K

    • innerKeySelector: function

      A function to extract the join key from each element of the second sequence.

        • (value: U): K
        • Parameters

          • value: U

          Returns K

    • resultSelector: function

      A function to create a result element from two matching elements.

        • (value1: any, value2: U): V
        • Parameters

          • value1: any
          • value2: U

          Returns V

    • Optional __this: any

    Returns List<V>

    An List that has elements of type V that are obtained by performing an inner join on two sequences.

last

  • last(): any

lastIndexOf

  • lastIndexOf(searchElement: any, fromIndex?: number): number
  • Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.

    Parameters

    • searchElement: any

      The value to locate in the array.

    • Optional fromIndex: number

      The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.

    Returns number

lastOrDefault

  • lastOrDefault(): any

map

  • map<U>(callbackfn: function, thisArg?: any): U[]
  • Calls a defined callback function on each element of an array, and returns an array that contains the results.

    Type parameters

    • U

    Parameters

    • callbackfn: function

      A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

        • (value: any, index: number, array: any[]): U
        • Parameters

          • value: any
          • index: number
          • array: any[]

          Returns U

    • Optional thisArg: any

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

    Returns U[]

max

  • max<S>(selector?: function): S
  • Invokes a transform function on each element of a sequence and returns the maximum value.

    Type parameters

    • S

    Parameters

    • Optional selector: function

      A transform function to apply to each element.

        • (value: any): S
        • Parameters

          • value: any

          Returns S

    Returns S

    The maximum value in the sequence.

min

  • min<S>(selector?: function): S
  • Invokes a transform function on each element of a sequence and returns the minimum value.

    parm

    selector A transform function to apply to each element.

    Type parameters

    • S

    Parameters

    • Optional selector: function
        • (value: any): S
        • Parameters

          • value: any

          Returns S

    Returns S

    The minimum value in the sequence.

moveNext

  • moveNext(): boolean
  • Returns boolean

orderBy

  • orderBy<K>(keySelector: function, comparer?: IComparer<K>): List<any>
  • Sorts the elements of a sequence in ascending order according to a key or by using a specified comparer.

    Type parameters

    • K

    Parameters

    • keySelector: function

      A function to extract a key from an element.

        • (value: any): K
        • Parameters

          • value: any

          Returns K

    • Optional comparer: IComparer<K>

      An System.Collections.Generic.IComparer`1 to compare keys.

    Returns List<any>

    An System.Linq.IOrderedEnumerable`1 whose elements are sorted according to a key.

orderByDescending

  • orderByDescending<K>(keySelector: function, comparer?: IComparer<K>): List<any>
  • Type parameters

    • K

    Parameters

    • keySelector: function
        • (value: any): K
        • Parameters

          • value: any

          Returns K

    • Optional comparer: IComparer<K>

    Returns List<any>

peek

  • peek(): any

pop

  • pop(): any | undefined
  • Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

    Returns any | undefined

push

  • push(...items: any[]): number
  • Appends new elements to the end of an array, and returns the new length of the array.

    Parameters

    • Rest ...items: any[]

      New elements to add to the array.

    Returns number

reduce

  • reduce(callbackfn: function): any
  • reduce(callbackfn: function, initialValue: any): any
  • reduce<U>(callbackfn: function, initialValue: U): U
  • Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    Parameters

    • callbackfn: function

      A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

        • (previousValue: any, currentValue: any, currentIndex: number, array: any[]): any
        • Parameters

          • previousValue: any
          • currentValue: any
          • currentIndex: number
          • array: any[]

          Returns any

    Returns any

  • Parameters

    • callbackfn: function
        • (previousValue: any, currentValue: any, currentIndex: number, array: any[]): any
        • Parameters

          • previousValue: any
          • currentValue: any
          • currentIndex: number
          • array: any[]

          Returns any

    • initialValue: any

    Returns any

  • Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    Type parameters

    • U

    Parameters

    • callbackfn: function

      A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

        • (previousValue: U, currentValue: any, currentIndex: number, array: any[]): U
        • Parameters

          • previousValue: U
          • currentValue: any
          • currentIndex: number
          • array: any[]

          Returns U

    • initialValue: U

      If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

    Returns U

reduceRight

  • reduceRight(callbackfn: function): any
  • reduceRight(callbackfn: function, initialValue: any): any
  • reduceRight<U>(callbackfn: function, initialValue: U): U
  • Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    Parameters

    • callbackfn: function

      A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

        • (previousValue: any, currentValue: any, currentIndex: number, array: any[]): any
        • Parameters

          • previousValue: any
          • currentValue: any
          • currentIndex: number
          • array: any[]

          Returns any

    Returns any

  • Parameters

    • callbackfn: function
        • (previousValue: any, currentValue: any, currentIndex: number, array: any[]): any
        • Parameters

          • previousValue: any
          • currentValue: any
          • currentIndex: number
          • array: any[]

          Returns any

    • initialValue: any

    Returns any

  • Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    Type parameters

    • U

    Parameters

    • callbackfn: function

      A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

        • (previousValue: U, currentValue: any, currentIndex: number, array: any[]): U
        • Parameters

          • previousValue: U
          • currentValue: any
          • currentIndex: number
          • array: any[]

          Returns U

    • initialValue: U

      If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

    Returns U

remove

  • remove(item: any): void
  • Parameters

    • item: any

    Returns void

removeAt

  • removeAt(index: number): void
  • Removes the element at the specified index of the Lis.

    throw

    index is less than 0. -or- index is equal to or greater than Count.

    Parameters

    • index: number

      The zero-based index of the element to remove.

    Returns void

removeByIndex

  • removeByIndex(index: number): List<any>

removeRange

  • removeRange(index: number, count: number): void
  • Parameters

    • index: number
    • count: number

    Returns void

reset

  • reset(): void
  • Returns void

reverse

  • reverse(): any[]
  • Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array.

    Returns any[]

select

  • select<S>(selector: function, __this?: any): List<S>
  • Projects each element of a sequence into a new form.

    Type parameters

    • S

    Parameters

    • selector: function

      A transform function to apply to each element.

        • (value: any): S
        • Parameters

          • value: any

          Returns S

    • Optional __this: any

    Returns List<S>

    An List whose elements are the result of invoking the transform function on each element of source.

selectAsync

  • selectAsync<S>(selector: function, __this?: any): Promise<List<S>>
  • Type parameters

    • S

    Parameters

    • selector: function
        • (value: any): Promise<S>
        • Parameters

          • value: any

          Returns Promise<S>

    • Optional __this: any

    Returns Promise<List<S>>

selectMany

  • selectMany<S>(selector: function, __this?: any): List<S>
  • Type parameters

    • S

    Parameters

    • selector: function
        • (value: any): List<S>
        • Parameters

          • value: any

          Returns List<S>

    • Optional __this: any

    Returns List<S>

selectMany2

  • selectMany2<C, V>(collectionSelector: function, resultSelector: function, __this?: any): List<V>
  • Type parameters

    • C

    • V

    Parameters

    • collectionSelector: function
        • (value: any): List<C>
        • Parameters

          • value: any

          Returns List<C>

    • resultSelector: function
        • (value1: any, value2: C): V
        • Parameters

          • value1: any
          • value2: C

          Returns V

    • Optional __this: any

    Returns List<V>

sequenceEqual

  • sequenceEqual(second: List<any>): boolean

setByIndex

  • setByIndex(index: number, item: any, keys?: string[]): void
  • Parameters

    • index: number
    • item: any
    • Default value keys: string[] = null

    Returns void

shift

  • shift(): any | undefined
  • Removes the first element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

    Returns any | undefined

skip

  • skip(count: number): List<any>
  • Parameters

    • count: number

    Returns List<any>

slice

  • slice(start?: number, end?: number): any[]
  • Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array.

    Parameters

    • Optional start: number

      The beginning index of the specified portion of the array. If start is undefined, then the slice begins at index 0.

    • Optional end: number

      The end index of the specified portion of the array. This is exclusive of the element at the index 'end'. If end is undefined, then the slice extends to the end of the array.

    Returns any[]

some

  • some(predicate: function, thisArg?: any): boolean
  • Determines whether the specified callback function returns true for any element of an array.

    Parameters

    • predicate: function

      A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.

        • (value: any, index: number, array: any[]): unknown
        • Parameters

          • value: any
          • index: number
          • array: any[]

          Returns unknown

    • Optional thisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

    Returns boolean

sort

  • sort(compareFn?: function): this
  • Sorts an array in place. This method mutates the array and returns a reference to the same array.

    Parameters

    • Optional compareFn: function

      Function used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they're equal, and a positive value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.

      [11,2,22,1].sort((a, b) => a - b)
      
        • (a: any, b: any): number
        • Parameters

          • a: any
          • b: any

          Returns number

    Returns this

sort2

  • sort2(): void

splice

  • splice(start: number, deleteCount?: number): any[]
  • splice(start: number, deleteCount: number, ...items: any[]): any[]
  • Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

    Parameters

    • start: number

      The zero-based location in the array from which to start removing elements.

    • Optional deleteCount: number

      The number of elements to remove.

    Returns any[]

    An array containing the elements that were deleted.

  • Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

    Parameters

    • start: number

      The zero-based location in the array from which to start removing elements.

    • deleteCount: number

      The number of elements to remove.

    • Rest ...items: any[]

      Elements to insert into the array in place of the deleted elements.

    Returns any[]

    An array containing the elements that were deleted.

sum

  • sum(selector?: function): number
  • Computes the sum of the sequence of System.Decimal values that are obtained by invoking a transform function on each element of the input sequence.

    Parameters

    • Optional selector: function

      A transform function to apply to each element.

        • (value: any): number
        • Parameters

          • value: any

          Returns number

    Returns number

    The sum of the projected values.

take

  • take(count: number): List<any>
  • Parameters

    • count: number

    Returns List<any>

toDictionary

  • toDictionary<K, V>(keySelector: function, elementSelector: function): Dictionary<K, V>
  • Type parameters

    • K

    • V

    Parameters

    • keySelector: function
        • (item: any): K
        • Parameters

          • item: any

          Returns K

    • elementSelector: function
        • (item: any): V
        • Parameters

          • item: any

          Returns V

    Returns Dictionary<K, V>

toList

  • toList(): List<any>

toLocaleString

  • toLocaleString(): string
  • Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.

    Returns string

toLookup

  • toLookup<K>(keySelector: function, __this?: any): Hashtable
  • Creates a Lookup from an List according to a specified key selector function.

    Type parameters

    • K

    Parameters

    • keySelector: function

      A function to extract a key from each element.

        • (value: any): K
        • Parameters

          • value: any

          Returns K

    • Optional __this: any

    Returns Hashtable

    A Lookup that contains keys and values.

toString

  • toString(): string
  • Returns a string representation of an array.

    Returns string

tryCastToBool

  • tryCastToBool(): List<boolean | null>

tryCastToDateTime

tryCastToNullableDateTime

tryCastToNullableNumber

  • tryCastToNullableNumber(): List<number | null>

tryCastToNullableTimeSpan

tryCastToNumber

  • tryCastToNumber(): List<number | null>

tryCastToString

  • tryCastToString(): List<string>

tryCastToTimeSpan

tryCastValueOrFirstDefaultToNullableNumber

  • tryCastValueOrFirstDefaultToNullableNumber(): List<number | null>

union

unshift

  • unshift(...items: any[]): number
  • Inserts new elements at the start of an array, and returns the new length of the array.

    Parameters

    • Rest ...items: any[]

      Elements to insert at the start of the array.

    Returns number

where

  • where(predicate: function, __this?: any): List<any>
  • Filters a sequence of values based on a predicate.

    Parameters

    • predicate: function

      A function to test each element for a condition.

        • (value: any, index: number): boolean
        • Parameters

          • value: any
          • index: number

          Returns boolean

    • Optional __this: any

    Returns List<any>

    An List that contains elements from the input sequence that satisfy the condition.

whereArrayItemEqualsTo

  • whereArrayItemEqualsTo(itemIndex: number, value: any): List<any[]>

whereArrayItemStringEqualsTo

  • whereArrayItemStringEqualsTo(itemIndex: number, value: string): List<any[]>

whereAsync

  • whereAsync(predicate: function, __this?: any): Promise<List<any>>
  • Parameters

    • predicate: function
        • (value: any, index: number): Promise<boolean>
        • Parameters

          • value: any
          • index: number

          Returns Promise<boolean>

    • Optional __this: any

    Returns Promise<List<any>>

whereEqualsTo

  • whereEqualsTo(values1: any, values2: any): List<any[]>

whereFirstOrDefaultArrayItemStringEqualsTo

  • whereFirstOrDefaultArrayItemStringEqualsTo(itemIndex: number, value: string): any[]

zip

  • zip<S, R>(second: List<S>, resultSelector: function): List<R>
  • Type parameters

    • S

    • R

    Parameters

    • second: List<S>
    • resultSelector: function
        • (first: any, second: S): R
        • Parameters

          • first: any
          • second: S

          Returns R

    Returns List<R>

Static add2

  • add2(a: any, b: any): List<any>
  • Parameters

    • a: any
    • b: any

    Returns List<any>

Static bitwiseAnd

  • bitwiseAnd(a: any, b: any): List<any>

Static bitwiseOr

  • bitwiseOr(a: any, b: any): List<any>

Static bitwiseXOr

  • bitwiseXOr(a: any, b: any): List<any>

Static create

  • create<T>(t: Type, ...values: any[]): List<T>
  • Type parameters

    • T

    Parameters

    • t: Type
    • Rest ...values: any[]

    Returns List<T>

Static div

  • div(a: any, b: any): List<any>
  • Parameters

    • a: any
    • b: any

    Returns List<any>

Static getValueOrFirstOrDefault

  • getValueOrFirstOrDefault(value: any): any

Static mult

  • mult(a: any, b: any): List<any>
  • Parameters

    • a: any
    • b: any

    Returns List<any>

Static repeat

  • repeat<T>(element: T, count: number): List<T>
  • Type parameters

    • T

    Parameters

    • element: T
    • count: number

    Returns List<T>

Static sub

  • sub(a: any, b: any): List<any>
  • Parameters

    • a: any
    • b: any

    Returns List<any>

Static toString2

  • toString2(value: any): string
  • Parameters

    • value: any

    Returns string

Generated using TypeDoc