MCPcopy Index your code
hub / github.com/angular-app/angular-app / rhex

Function rhex

client/src/common/directives/gravatar.js:206–212  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

204 var hex_chr = '0123456789abcdef'.split('');
205
206 function rhex(n) {
207 var s = '', j = 0;
208 for (; j < 4; j++) {
209 s += hex_chr[(n >> (j * 8 + 4)) & 0x0F] + hex_chr[(n >> (j * 8)) & 0x0F];
210 }
211 return s;
212 }
213
214 function hex(x) {
215 for (var i = 0; i < x.length; i++) {

Callers 1

hexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected