lib/Core/hashFromString.js
function hashFromString(s) {
  return Math.abs(
    s.split("").reduce(function(prev, c) {
      var hash = (prev << 5) - prev + c.charCodeAt(0);
      return hash;
    }, 0)
  );
}
function hashFromString(s) {
  return Math.abs(
    s.split("").reduce(function(prev, c) {
      var hash = (prev << 5) - prev + c.charCodeAt(0);
      return hash;
    }, 0)
  );
}
function hashFromString ( s ) { return Math . abs ( s . split ( "" ) . reduce ( function ( prev , c ) { var hash = ( prev << 5 ) - prev + c . charCodeAt ( 0 ) ; return hash ; } , 0 ) ) ; }
Returns a 32-bit integer hash of a string.  '' => 0.
Returns a 32 - bit integer hash of a string . = > 0 .