UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

8 lines (6 loc) 163 B
import { repeat } from "../main.ts"; describe("repeat", () => { it("repeats things", () => { expect(repeat("ho")(3)).toEqual(["ho", "ho", "ho"]); }); });