vtils

Home > types > Head

Head type

Functional programming essentials

Signature:

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

References: AnyArray