MCPcopy Create free account
hub / github.com/ampproject/amphtml / get

Function get

build-system/tasks/helpers.js:456–467  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

454 */
455const mangleIdentifier = {
456 get(num) {
457 const charset =
458 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789';
459 let base = 54;
460 let id = '';
461 do {
462 id = charset[num % base] + id;
463 num = Math.floor(num / base);
464 base = 64;
465 } while (num > 0);
466 return id;
467 },
468};
469
470/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected