MCPcopy Index your code
hub / github.com/davidmerfield/randomColor / stringToInteger

Function stringToInteger

randomColor.js:577–584  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

575 }
576
577 function stringToInteger(string) {
578 var total = 0;
579 for (var i = 0; i !== string.length; i++) {
580 if (total >= Number.MAX_SAFE_INTEGER) break;
581 total += string.charCodeAt(i);
582 }
583 return total;
584 }
585
586 // get The range of given hue when options.count!=0
587 function getRealHueRange(colorHue) {

Callers 1

randomColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…