UNPKG

ts-prime

Version:

A utility library for JavaScript and Typescript.

14 lines (12 loc) 209 B
import { map } from './map'; export const createCounter = () => { const count = jest.fn(); return { count, fn: <T>() => map<T, T>(x => { count(); return x; }), }; };