(s: string)
| 33 | title.replace(UNICODE_WHITESPACE, ""); |
| 34 | |
| 35 | export function hashCode(s: string): number { |
| 36 | let hash = 0; |
| 37 | for (let i = 0; i < s.length; i++) { |
| 38 | hash = (hash << 5) - hash + s.charCodeAt(i); |
| 39 | hash |= 0; // Convert to 32bit integer |
| 40 | } |
| 41 | return hash; |
| 42 | } |