dist/utils.js
function argMapper(arg, index, array) {
    var isError = (0, _neTypes.typeOf)(arg) === Error.name;
    var showStack = /\bSTACK\b/i.test(process.env.LATTICE_ERRORS || ''); // $FlowFixMe

    return !isError ? arg : showStack ? arg : arg.message;
  }
function argMapper(arg, index, array) {
    var isError = (0, _neTypes.typeOf)(arg) === Error.name;
    var showStack = /\bSTACK\b/i.test(process.env.LATTICE_ERRORS || ''); // $FlowFixMe

    return !isError ? arg : showStack ? arg : arg.message;
  }
function argMapper ( arg , index , array ) { var isError = ( 0 , _neTypes . typeOf ) ( arg ) === Error . name ; var showStack = / \bSTACK\b / i . test ( process . env . LATTICE_ERRORS || '' ) ; // $FlowFixMe return ! isError ? arg : showStack ? arg : arg . message ; }
All arguments of any logging function in `LatticeLogs` get passed through
this function first to modify or alter the type of value being logged.

@param {mixed} arg the argument being passed to the `map()` function
@param {number} index the index in the array of arguments
@param {Array<mixed>} array the array containing this element
All arguments of any logging function in LatticeLogs get passed through this function first to modify or alter the type of value being logged .