index.js
function leftAlign(lines) {
    if (lines.length == 0) return lines;
    var distance = lines[0].match(/^\s*/)[0].length;
    var result = [];
    lines.forEach(function(line){
        result.push(line.slice(Math.min(distance, line.match(/^\s*/)[0].length)));
    });
    return result;
}
function leftAlign(lines) {
    if (lines.length == 0) return lines;
    var distance = lines[0].match(/^\s*/)[0].length;
    var result = [];
    lines.forEach(function(line){
        result.push(line.slice(Math.min(distance, line.match(/^\s*/)[0].length)));
    });
    return result;
}
function leftAlign ( lines ) { if ( lines . length == 0 ) return lines ; var distance = lines [ 0 ] . match ( / ^\s* / ) [ 0 ] . length ; var result = [ ] ; lines . forEach ( function ( line ) { result . push ( line . slice ( Math . min ( distance , line . match ( / ^\s* / ) [ 0 ] . length ) ) ) ; } ) ; return result ; }
Remove indent from the left, aligning everything with the first line
Remove indent from the left aligning everything with the first line