Created
March 25, 2016 00:45
-
-
Save kellegous/0c0cfc13ffd5a71a7eac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
100th follower, hire me