TypeTensor - v0.1.0
    Preparing search index...

    Type Alias SecondToLast<S>

    SecondToLast: S extends readonly [...unknown[], infer SL, unknown]
        ? SL extends number ? SL : never
        : never

    Get the second-to-last dimension

    Type Parameters

    type SecondToLast = SecondToLast<[2, 3, 4]> // 3