lib/helpers/logger.js
function log(fn, args, indent) {
    if (args.length === 0) {
        return;
    }

    // Assumes args are something you would pass into console.log
    // Applies appropriate nesting
    const indentation = _.repeat('\t', indent);

    // Prepend tabs to first arg (if string)
    if (_.isString(args[0])) {
        args[0] = indentation + args[0];
    } else {
        args.splice(0, 0, indentation);
    }

    fn.apply(this, args);
}
function log(fn, args, indent) {
    if (args.length === 0) {
        return;
    }

    // Assumes args are something you would pass into console.log
    // Applies appropriate nesting
    const indentation = _.repeat('\t', indent);

    // Prepend tabs to first arg (if string)
    if (_.isString(args[0])) {
        args[0] = indentation + args[0];
    } else {
        args.splice(0, 0, indentation);
    }

    fn.apply(this, args);
}
function log ( fn , args , indent ) { if ( args . length === 0 ) { return ; } // Assumes args are something you would pass into console.log // Applies appropriate nesting const indentation = _ . repeat ( '\t' , indent ) ; // Prepend tabs to first arg (if string) if ( _ . isString ( args [ 0 ] ) ) { args [ 0 ] = indentation + args [ 0 ] ; } else { args . splice ( 0 , 0 , indentation ) ; } fn . apply ( this , args ) ; }
Internal helper for logging stuff out
Internal helper for logging stuff out