Gets the type of the first element of a readonly array or tuple T.
If the array is empty, it returns the default type D (defaults to never).
Delegates to Tuple.Head.
Type Parameters
Textendsreadonlyunknown[]
The readonly array or tuple type.
D = never
The default type to return if T is empty. Defaults to never.
Returns
The type of the first element, or D if T is empty.
Gets the type of the first element of a readonly array or tuple
T. If the array is empty, it returns the default typeD(defaults tonever). Delegates toTuple.Head.