30 seconds of code

  Back to Home

pipeLog

utilitybeginner

Logs a value and returns it.

Use console.log to log the supplied value, combined with the || operator to return it.

const pipeLog = data => console.log(data) || data;