addon/components/ember-chimp.js
function endsWith(string, suffix) {
  return string.indexOf(suffix, string.length - suffix.length) !== -1;
}
function endsWith(string, suffix) {
  return string.indexOf(suffix, string.length - suffix.length) !== -1;
}
function endsWith ( string , suffix ) { return string . indexOf ( suffix , string . length - suffix . length ) !== - 1 ; }
A utility method for checking the end of a string
for a certain value.

@method endsWith
@param {String} string The string to check.
@param {String} suffix The suffix to check the string for.
@private
@return {Boolean} A boolean that indicates whether the suffix is present.
A utility method for checking the end of a string for a certain value .