Signature: byteLength(text: string) -> int
Description: Returns the number of bytes in the string's UTF-8 encoding.
Parameters
- text (string): The string to measure
Returns: int
Example
let n = byteLength("héllo") // 6
Signature: byteLength(text: string) -> int
Description: Returns the number of bytes in the string's UTF-8 encoding.
Returns: int
let n = byteLength("héllo") // 6