(str: string)
| 124 | * @category hashing |
| 125 | */ |
| 126 | export const string = (str: string) => { |
| 127 | let h = 5381, i = str.length |
| 128 | while (i) { |
| 129 | h = (h * 33) ^ str.charCodeAt(--i) |
| 130 | } |
| 131 | return optimize(h) |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * @since 2.0.0 |
no test coverage detected
searching dependent graphs…