@chickenjdk/common
    Preparing search index...

    Type Alias countingArray<length, temp>

    countingArray: length extends temp["length"]
        ? temp
        : countingArray<length, [...temp, temp["length"]]>

    Make an array of numbers from 0 to length - 1, with the length being the number passed as the first parameter.

    Type Parameters

    • length extends number
    • temp extends number[] = []
    countingArray<5> // [0, 1, 2, 3, 4]