TypeTensor - v0.1.0
    Preparing search index...

    Type Alias IsEmpty<T>

    IsEmpty: T extends readonly [] ? true : false

    Check if a shape is empty (scalar)

    Type Parameters

    type IsScalar = IsEmpty<[]> // true
    type IsNotScalar = IsEmpty<[2, 3]> // false