This function mirrors the length function from the JavaScript Standard String object. It handles Unicode code points instead of UTF-16 character codes. Since length appears to be a reserved keyword, the function was renamed to stringLength
length
stringLength
Returns the length of a string.
String to return the length for
Number that is length of the starting string
This function mirrors the
length
function from the JavaScript Standard String object. It handles Unicode code points instead of UTF-16 character codes. Sincelength
appears to be a reserved keyword, the function was renamed tostringLength
Returns the length of a string.