"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hashCode = void 0;
const hashCode = function (str) {
    let hash = 0;
    if (str.length === 0) {
        return hash;
    }
    for (let i = 0; i < str.length; i++) {
        let char = str.charCodeAt(i);
        hash = (hash << 5) - hash + char;
        hash = hash & hash; // Convert to 32 bit integer
    }
    return hash;
};
exports.hashCode = hashCode;
//# sourceMappingURL=hashCode.js.map