devtypes - v1.1.0
    Preparing search index...

    Type Alias IsIndexedList<L>

    IsIndexedList: L extends readonly any[] ? true : false

    Test whether a list-like structure is index-based.

    Type Parameters

    • L

      List-like type

    1.1.0

    Returns true for arrays and readonly arrays.

    type A = IsIndexedList< number[] >; // true
    type B = IsIndexedList< ReadonlyArray< string > >; // true
    type C = IsIndexedList< Set< boolean > >; // false