what is the easiest way to figure out if a string ends with a certain value?
ES6 supports this directly:
'this is dog'.endsWith('dog') //true