UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

16 lines (14 loc) 238 B
import {Length} from './Length' import {List} from './List' /** Get the first entry of `L` @param L to extract from @returns [[Any]] @example ```ts ``` */ export type Head<L extends List> = Length<L> extends 0 ? never : L[0]