(str: string)
| 3 | |
| 4 | /** @internal */ |
| 5 | export const hashString = (str: string) => { |
| 6 | let h = 5381, i = str.length |
| 7 | while (i) { |
| 8 | h = (h * 33) ^ str.charCodeAt(--i) |
| 9 | } |
| 10 | return hashOptimize(h) |
| 11 | } |
no test coverage detected
searching dependent graphs…