Options
All
  • Public
  • Public/Protected
  • All
Menu

@tsdotnet/collection-base - v2.0.11

Index

Functions

  • arrayLikeIterable<T>(source: ArrayLike<T>): Iterable<T>
  • Ensures an iterable from an ArrayLike object. If is an instance of an Array, will return the array directly.

    Type parameters

    • T

    Parameters

    • source: ArrayLike<T>

    Returns Iterable<T>

  • copyIterableTo<T, TTarget>(source: Iterable<T>, target: TTarget, index?: number): TTarget
  • Copies all values to a numerically indexable object.

    Type parameters

    • T

    • TTarget: ArrayLikeWritable<T, TTarget>

    Parameters

    • source: Iterable<T>
    • target: TTarget
    • index: number = 0

    Returns TTarget

    target

  • indexIterable<T>(source: ArrayLike<T>): Iterable<T>
  • Returns an iterable that iterates an ArrayLike object by index.

    Type parameters

    • T

    Parameters

    • source: ArrayLike<T>

    Returns Iterable<T>

Generated using TypeDoc