MCPcopy Create free account
hub / github.com/6dylan6/jdm / string10to64

Function string10to64

function/jdValidate.js:330–341  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

328
329function getCoordinate(c) {
330 function string10to64(d) {
331 var c = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-~".split(""),
332 b = c.length,
333 e = +d,
334 a = [];
335 do {
336 mod = e % b;
337 e = (e - mod) / b;
338 a.unshift(c[mod])
339 } while (e);
340 return a.join("")
341 }
342
343 function prefixInteger(a, b) {
344 return (Array(b).join(0) + a).slice(-b)

Callers 1

pretreatmentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected