(str: string)
| 366 | * @since 2.0.0 |
| 367 | */ |
| 368 | export const string = (str: string) => { |
| 369 | let h = 5381, i = str.length |
| 370 | while (i) { |
| 371 | h = (h * 33) ^ str.charCodeAt(--i) |
| 372 | } |
| 373 | return optimize(h) |
| 374 | } |
| 375 | |
| 376 | /** |
| 377 | * Computes a hash value for an object using only the specified keys. |
no test coverage detected