JSFiddle - React, Tailwind, and code Playground
by tjnicolaides
JavaScript
var hashCode=function(e){var t=0,n,r;var i=8;if(e.length==0)return t;for(n=0,l=e.length;n<l;n++){r=e.charCodeAt(n);t=(t<<5)-t+r;t|=0}t=Math.abs(t).toString();var s=i-t.length;if(s>0){for(j=0;j<s;j++){t+="0"}}else if(s<0){t=t.substring(0,t.length-Math.abs(s))}return t}
console.log(hashCode('apss'));
console.log(hashCode('aeon333'));
console.log(hashCode('alphasleeplabs'));
console.log(hashCode('alphatest'));
console.log(hashCode('amydev'));
console.log(hashCode('amynew'));
console.log(hashCode('amyv4test'));
console.log(hashCode('amyv5test'));
console.log(hashCode('arizonasleepwellinc'));
console.log(hashCode('ash'));
console.log(hashCode('bhola'));
console.log(hashCode('browsertest'));
console.log(hashCode('calendar'));
console.log(hashCode('canbnj'));
console.log(hashCode('cherylv4test'));
console.log(hashCode('crm'));
console.log(hashCode('ezsleep'));
console.log(hashCode('ezsleep1'));
console.log(hashCode('swhst'));
console.log(hashCode('swhstv4'));
console.log(hashCode('camillus'));
console.log(hashCode('aeonsleepgroup'));
console.log(hashCode('aeon333'));