UNPKG

rambdax

Version:

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

15 lines (13 loc) 222 B
import {List} from './List' /** Remove the first item out of a [[List]] @param L @returns [[List]] @example ```ts ``` */ export type Tail<L extends List> = L extends readonly [any, ...infer LTail] ? LTail : L