Skip to content

Instantly share code, notes, and snippets.

@kellegous
Created March 25, 2016 00:45
Show Gist options
  • Save kellegous/0c0cfc13ffd5a71a7eac to your computer and use it in GitHub Desktop.
Save kellegous/0c0cfc13ffd5a71a7eac to your computer and use it in GitHub Desktop.
var isPosInt = require('is-positive-integer');
// Write a function that pads out a string to a certain length w/ a given character
function hireMe(s) {
// we have a "certain length" here because I'm certain the length will be 17 + the length of your string.
if (isPosInt(10)) {
return "a given character" + s;
}
}
@PauloArthur
Copy link

100th follower, hire me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment