Jon Erickson Jon Erickson - 10 months ago 66
Javascript Question

JavaScript or jQuery string ends with utility function

what is the easiest way to figure out if a string ends with a certain value?


you could use Regexps, like this:


which would return true if the string has 'value' at the end of it ($).