home ~ projects ~ socials

Get A String With A Specific Number Of Spaces For Padding In JavaScript

// TODO: Test with full example

function getSpaces(count) { 
  return Array(count).fill(' ').join('');
}
-- end of line --