UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

10 lines (8 loc) 240 B
import { rest } from "../rest.ts"; describe("rest()", () => { it("should retrieve the rest of an array", () => { expect(rest([])).toEqual([]); expect(rest([1])).toEqual([]); expect(rest([1, 2, 3])).toEqual([1, 2]); }); });