Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "iter/concat"

Index

Functions

Functions

concat

  • concat<T>(...xs: Nullable<Iterable<T>>[]): IterableIterator<T>
  • Yields iterator producing concatenation of given iterables. Undefined & null inputs are silently ignored, however any such values produced or contained in an input will remain.

    example
    [...concat([1, 2, 3], null, [4, 5])]
    // [ 1, 2, 3, 4, 5 ]
    
    [...concat([1, 2, 3, undefined], null, [4, 5])]
    // [ 1, 2, 3, undefined, 4, 5 ]

    Type parameters

    • T

    Parameters

    • Rest ...xs: Nullable<Iterable<T>>[]

      -

    Returns IterableIterator<T>

Generated using TypeDoc