devtypes - v2.0.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

    Returns true for arrays and readonly arrays.

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