(text: string)
| 61 | * Calculate the UTF-8 byte length of a string. |
| 62 | */ |
| 63 | const utf8Bytes = (text: string): number => { |
| 64 | return new TextEncoder().encode(text).length; |
| 65 | }; |
| 66 | |
| 67 | /** |
| 68 | * Calculate the UTF-8 byte length of a value's JSON representation. |
no test coverage detected