Files
BeWoPlaner/BeWoPlanerMobil/node_modules/utilise/hashcode.js
Lyndon Jetten fda2c306b5 MoK: Report Viewer hinzugefügt
FaC: Das alte Flag von Terminen, die in die Zeiterfassung übernommen worden sind, wird ebenfalls berücksichtigt.
2023-03-13 19:39:04 +01:00

11 lines
231 B
JavaScript

module.exports = function hashcode(str) {
var hash = 0
if (!str) return hash
for (var i = 0; i < str.length; i++) {
var char = str.charCodeAt(i)
hash = ((hash<<5)-hash)+char
hash = hash & hash
}
return hash
}