align.js
function createPadding (width) {
  var result = ''
  var string = ' '
  var n = width
  do {
    if (n % 2) {
      result += string;
    }
    n = Math.floor(n / 2);
    string += string;
  } while (n);

  return result;
}
function createPadding (width) {
  var result = ''
  var string = ' '
  var n = width
  do {
    if (n % 2) {
      result += string;
    }
    n = Math.floor(n / 2);
    string += string;
  } while (n);

  return result;
}
function createPadding ( width ) { var result = '' var string = ' ' var n = width do { if ( n % 2 ) { result += string ; } n = Math . floor ( n / 2 ) ; string += string ; } while ( n ) ; return result ; }
lodash's way of generating pad characters.
lodash s way of generating pad characters .