substring
substring()
Section titled “substring()”Category: String
Returns a substring starting at the specified index, optionally with specified length
Signature
Section titled “Signature”- Return type:
string - Parameters:
startinteger— Zero-based starting indexlengthinteger— Length of substring (optional)
Examples
Section titled “Examples”'Hello World'.substring(6)'Hello World'.substring(0, 5)Patient.name.family.substring(1, 3)