UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

4 lines (3 loc) 85 B
export function rest<T>(coll: T[]): T[] { return coll.slice(0, coll.length - 1); }