Skip to content

Instantly share code, notes, and snippets.

@dalemanthei
Created April 6, 2015 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dalemanthei/ca76771c0b731818e164 to your computer and use it in GitHub Desktop.
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