Legend:
- ✏️ method changes
this. - 🔒 method does not change
this.
Array<T>.prototype.*:
concat(...items: Array: T[]🔒 ES3
| set myVPNs to {"us1.vpnhide.com", "us2.vpnhide.com", "us3.vpnhide.com", "us4.vpnhide.com", "us5.vpnhide.com", "sg1.vpnhide.com", "sg2.vpnhide.com", "jp1.vpnhide.com", "jp2.vpnhide.com", "jp3.vpnhide.com", "tw1.vpnhide.com", "hk1.vpnhide.com", "hk2.vpnhide.com"} | |
| set currentVPN to 0 | |
| set isPingLessThan400Count to 0 | |
| set vpn_name to "YUN (L2TP)" | |
| set vpnExists to false | |
| on vpn_status(vpn_name) | |
| tell application "System Events" | |
| return connected of configuration of service vpn_name of network preferences | |
| end tell |
None of the string methods modify this – they always return fresh strings.
charAt(pos: number): string ES1
Returns the character at index pos, as a string (JavaScript does not have a datatype for characters). str[i] is equivalent to str.charAt(i) and more concise (caveat: may not work on old engines).