Created
September 18, 2015 14:20
-
-
Save ceaksan/9ca3ccde4b438fd6ccb5 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) { | |
var fL = target.length; | |
var result; | |
/* | |
Peki, sonraki noktayı dikkate almamak istersek? | |
str = str.replace(/\.\s*$/, ''); | |
*/ | |
str.substr(-fL) === target ? result = true : result = false; | |
return result; | |
} | |
end("Walking on water and developing software from a specification are easy if both are frozen.", "n", ""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment