UNPKG

payload-auth-plugin-fix

Version:
14 lines (13 loc) 213 B
// src/core/utils/hash.ts function hashCode(s) { let h = 0; const l = s.length; let i = 0; if (l > 0) while (i < l) h = (h << 5) + h + s.charCodeAt(i++) | 0; return h; } export { hashCode };