mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-06 01:15:56 +08:00
Upgrade dependencies and fix ESLint issues.
This commit is contained in:
@ -20,7 +20,7 @@ export default class PolynomialHash {
|
||||
* @return {number}
|
||||
*/
|
||||
hash(word) {
|
||||
const charCodes = Array.from(word).map(char => this.charToNumber(char));
|
||||
const charCodes = Array.from(word).map((char) => this.charToNumber(char));
|
||||
|
||||
let hash = 0;
|
||||
for (let charIndex = 0; charIndex < charCodes.length; charIndex += 1) {
|
||||
|
Reference in New Issue
Block a user