JSFiddle - React, Tailwind, and code Playground

by Shang-De You

JavaScript

hashCode = function(s){
  return s.split("").reduce(function(a,b){a=((a<<5)-a)+b.charCodeAt(0);return a&a},0);              
}

console.log(hashCode('[email protected]'))