UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

11 lines (10 loc) 318 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.spy = void 0; function spy(message, value) { if (arguments.length === 1) return (theValue) => spy(message, theValue); console.log(`[${message || "spy"}]:`, typeof value, value); return value; } exports.spy = spy;