UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

20 lines (19 loc) 407 B
import { tap } from '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 = /*#__PURE__*/tap(function (x) { return console.log(x); }); export default log;