index.js
function mapLog(...tags) {
    /**
     * Array logge Prinst every value on separated line
     * @function printArray
     * @param {Array} message Printed list
     * @returns {Array}
     */
    function printArray(message) {
      if (active) {
        arrayCheck(message)
        const tag = normalizeDefaults(tags)
        //count length + 2. Also handles edge case with objects without 'length' field
        const spaceLn = P(
          length,
          defaultTo(0),
          add(2) )
        const ln = sum( map( spaceLn, tags ) )
        const spaces = new Array(ln)
          .fill(' ')
          .join('')

        const getFormatted = num => chalk.green(`<${num}>`)
        levelLogger( tag, getFormatted(0), head( message ) )
        const printTail = (e, i) => levelLogger(spaces, getFormatted(i+1), e)

        P(
          tail,
          indexedMap(printTail)
        )(message)
      }
      return message
    }
    return printArray
  }
function mapLog(...tags) {
    /**
     * Array logge Prinst every value on separated line
     * @function printArray
     * @param {Array} message Printed list
     * @returns {Array}
     */
    function printArray(message) {
      if (active) {
        arrayCheck(message)
        const tag = normalizeDefaults(tags)
        //count length + 2. Also handles edge case with objects without 'length' field
        const spaceLn = P(
          length,
          defaultTo(0),
          add(2) )
        const ln = sum( map( spaceLn, tags ) )
        const spaces = new Array(ln)
          .fill(' ')
          .join('')

        const getFormatted = num => chalk.green(`<${num}>`)
        levelLogger( tag, getFormatted(0), head( message ) )
        const printTail = (e, i) => levelLogger(spaces, getFormatted(i+1), e)

        P(
          tail,
          indexedMap(printTail)
        )(message)
      }
      return message
    }
    return printArray
  }
function mapLog ( ... tags ) { /**
     * Array logge Prinst every value on separated line
     * @function printArray
     * @param {Array} message Printed list
     * @returns {Array}
     */ function printArray ( message ) { if ( active ) { arrayCheck ( message ) const tag = normalizeDefaults ( tags ) //count length + 2. Also handles edge case with objects without 'length' field const spaceLn = P ( length , defaultTo ( 0 ) , add ( 2 ) ) const ln = sum ( map ( spaceLn , tags ) ) const spaces = new Array ( ln ) . fill ( ' ' ) . join ( '' ) const getFormatted = num => chalk . green ( ` ${ num } ` ) levelLogger ( tag , getFormatted ( 0 ) , head ( message ) ) const printTail = ( e , i ) => levelLogger ( spaces , getFormatted ( i + 1 ) , e ) P ( tail , indexedMap ( printTail ) ) ( message ) } return message } return printArray }
Array logge Prinst every value on separated line
@function mapLog
@param {...string} tags Optional message tags
Array logge Prinst every value on separated line