code: function endsWith(str, prefix) {
    return (str.indexOf(prefix, str.length - prefix.length) !== -1);
  }
docs: -------------------------------------------------------------------------- Public --------------------------------------------------------------------------