Skip to content

Instantly share code, notes, and snippets.

@dalemanthei
Created April 6, 2015 16:56
Show Gist options
  • Select an option

  • Save dalemanthei/ca76771c0b731818e164 to your computer and use it in GitHub Desktop.

Select an option

Save dalemanthei/ca76771c0b731818e164 to your computer and use it in GitHub Desktop.
String fill
function stringFill2(x, n) {
var s = '';
while (n-- > 0) s += x;
return s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment