UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

28 lines (25 loc) 543 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ramda = require("ramda"); /** * Function with side-effect. Logs input to console and returns that input. Should be used only in development. * * @func * @category Debugging * * @example * * R_.log('hello') // logs 'hello' * compose(R_.log, R.sum)([1, 3]) // logs 4 * * @sig a -> a * */ var log = (0, _ramda.tap)(function (x) { return console.log(x); }); var _default = log; exports.default = _default;