(arr: Uint8Array[])
| 508 | * serves the website. |
| 509 | */ |
| 510 | export function bytesFromStringArray(arr: Uint8Array[]): number { |
| 511 | if (arr == null) { |
| 512 | return 0; |
| 513 | } |
| 514 | let bytes = 0; |
| 515 | arr.forEach(x => bytes += x.length); |
| 516 | return bytes; |
| 517 | } |
| 518 | |
| 519 | /** Returns true if the value is a string. */ |
| 520 | export function isString(value: {}): value is string { |
no outgoing calls
no test coverage detected
searching dependent graphs…