code: function endsWith(str, ending) {
          if (str.length - ending.length === str.lastIndexOf(ending))
              return true;
          else return false;
      }
docs: Determine if a string ends with the provided string.
  
  @memberof String
  @instance
  @param {string} str - The string to check
  @param {string} ending - The string to match