you could use Regexps, like this:
str.match(/value$/)
which would return true if the string has ‘value’ at the end of it ($).
you could use Regexps, like this:
str.match(/value$/)
which would return true if the string has ‘value’ at the end of it ($).