code: function __stringStartsWith(str, prefix) {
    // returns true for empty string or null prefix
    if ((!str)) return false;
    if (prefix == "" || prefix == null) return true;
    return str.indexOf(prefix, 0) === 0;
  }
docs: end of is Functions string functions