(base, chars)
| 212 | return curr; |
| 213 | }, {}); |
| 214 | const lenCalc = (base, chars) => { |
| 215 | var len = 0; |
| 216 | var curr = 1; |
| 217 | while (curr < chars) { |
| 218 | curr *= base; |
| 219 | len++; |
| 220 | } |
| 221 | return len; |
| 222 | }; |
| 223 | const UNICODE_CHARS = 1114112; |
| 224 | const BASE = CHARS.length; |
| 225 | const LEN = lenCalc(BASE, UNICODE_CHARS); |
no outgoing calls
no test coverage detected