Function logFn

A wrapper for console.log that returns the input value unmodified

// peek inside a chain of map functions
[1,2,3,4,5].map(logFn).map(yourNextFunction)

// wrap a returned function call to see what it returns
return logFn(otherFunction())
  • Type Parameters

    • T

    Parameters

    Returns T