vtils

Home > types > Head

Head type

Functional programming essentials

Signature:

export declare type Head<T extends AnyArray_2> = T["length"] extends 0 ? never : T[0];

References: AnyArray_2