Function array

  • Transforms an iterable to an array.

    Type Parameters

    • V
    • Iter extends AnyIt<unknown> = It<V>

    Parameters

    Returns CondIt<Iter, AnyItV<Iter>[], Promise<AnyItV<Iter>[]>>

    Example

    // Returns [1, 2, 3]
    it.array('123')