function groupByFilename(value, i, array) {
        var current      = String(value).split(/\:\d+/)[0];
        var previous     = String(array[i-1]).split(/\:\d+/)[0];
        var isDissimilar = (i > 0) && (i < array.length) && (current !== previous);
        var result       = isDissimilar ? ('\n' + value) : value;
        return result;
      }
/**
       * Mapping function that injects new-line return between dissimilar messages
       */
Mapping function that injects new-line return between dissimilar messages
Mapping function that injects new - line return between dissimilar messages
function groupByFilename(value, i, array) {
        var current      = String(value).split(/\:\d+/)[0];
        var previous     = String(array[i-1]).split(/\:\d+/)[0];
        var isDissimilar = (i > 0) && (i < array.length) && (current !== previous);
        var result       = isDissimilar ? ('\n' + value) : value;
        return result;
      }
function groupByFilename ( value , i , array ) { var current = String ( value ) . split ( / \:\d+ / ) [ 0 ] ; var previous = String ( array [ i - 1 ] ) . split ( / \:\d+ / ) [ 0 ] ; var isDissimilar = ( i > 0 ) && ( i < array . length ) && ( current !== previous ) ; var result = isDissimilar ? ( '\n' + value ) : value ; return result ; }
Mapping function that injects new-line return between dissimilar messages
Mapping function that injects new - line return between dissimilar messages