Created
November 19, 2015 11:02
-
-
Save IAmAnubhavSaini/3a8baaaa8213e7f9f258 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
function end(str, target) { | |
return str.substr(str.length-target.length, target.length) === target; | |
} | |
end("Bastian", "n"); | |
end("Connor", "n"); | |
end("Walking on water and developing software from a specification are easy if both are frozen", "specification"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment