lib/utils/common.js
function(strings) {
			var lengths = strings.map(function(s) {
				return typeof s === 'string' ? s.length : +s;
			});
			
			var max = lengths.reduce(function(prev, cur) {
				return typeof prev === 'undefined' ? cur : Math.max(prev, cur);
			});
			return lengths.map(function(l) {
				var pad = max - l;
				return pad ? this.repeatString(' ', pad) : '';
			}, this);
		}
function(strings) {
			var lengths = strings.map(function(s) {
				return typeof s === 'string' ? s.length : +s;
			});
			
			var max = lengths.reduce(function(prev, cur) {
				return typeof prev === 'undefined' ? cur : Math.max(prev, cur);
			});
			return lengths.map(function(l) {
				var pad = max - l;
				return pad ? this.repeatString(' ', pad) : '';
			}, this);
		}
function ( strings ) { var lengths = strings . map ( function ( s ) { return typeof s === 'string' ? s . length : + s ; } ) ; var max = lengths . reduce ( function ( prev , cur ) { return typeof prev === 'undefined' ? cur : Math . max ( prev , cur ) ; } ) ; return lengths . map ( function ( l ) { var pad = max - l ; return pad ? this . repeatString ( ' ' , pad ) : '' ; } , this ) ; }
Returns list of paddings that should be used to align passed string
@param {Array} strings
@returns {Array}
Returns list of paddings that should be used to align passed string