UNPKG

hash-string

Version:

A string hashing function based on Daniel J. Bernstein's popular 'times 33' hash algorithm.

1 lines 243 B
!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.hash=t()}(this,function(){function e(e){"use strict";for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}return e});