MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / itoa

Method itoa

modules/crypt/etc/ber.js:196–201  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

194 return this.#i;
195 }
196 static itoa(n) {
197 n = n.toString();
198 if (n.length < 2)
199 return "0" + n;
200 return n;
201 }
202 static encode(arr) {
203 const b = new BER;
204 const tag = arr[0];

Callers 1

encodeMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected