devtypes - v1.1.0
    Preparing search index...

    Type Alias ListLike<T, I>

    ListLike:
        | T[]
        | ReadonlyArray<T>
        | Record<I, T>
        | Set<T>
        | ReadonlySet<T>
        | Map<I, T>
        | ReadonlyMap<I, T>
        | Iterable<T>

    Any list-like structure.

    Type Parameters

    • T = any

      Element or value type

    • I extends string | number = string | number

      Index or key type for keyed collections

    Represents the most common collection and iterable types in JavaScript. Useful for APIs that accept any kind of value collection.

    type NumList = ListLike< number >;