• Converts specified array-like arguments to a single array; may return original parameter if only a single param is specified and that param is already an array. Otherwise the provided parameters are copied to a new array.

    Type Parameters

    • T

    Parameters

    • Rest ...elements: (T | Iterable<T> | T[])[]

    Returns T[]