Function elementOrArray

  • Builds element or array of the given elements.

    Type Parameters

    • T

    Parameters

    • source: Iterable<T> | ArrayLike<T>

      A source of elements as their iterable or array-like container.

    Returns T | T[] | undefined

    The only element of the source, an array of all elements of non-empty source, or undefined if the source is empty.

Generated using TypeDoc