whole_func_string: function endsWith(data, str) {
      if (data.length < str.length) return false;
      if (data === str) return true;
      return data.lastIndexOf(str) === data.length - str.length;
  }
func_code_string: function endsWith(data, str) {
      if (data.length < str.length) return false;
      if (data === str) return true;
      return data.lastIndexOf(str) === data.length - str.length;
  }
func_documentation_string: Finds if data ends with str
  
  @param {String} data The text to search
  @param {String} str The text to find
  @returns {Boolean} whether data ends with str