code: function endsWith(string, suffix) {
    return string.indexOf(suffix, string.length - suffix.length) !== -1;
  }
docs: 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.