MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / concat

Function concat

lib.commonjs/utils/data.js:97–99  ·  view source on GitHub ↗

* Returns a [[DataHexString]] by concatenating all values * within %%data%%.

(datas)

Source from the content-addressed store, hash-verified

95 * within %%data%%.
96 */
97function concat(datas) {
98 return "0x" + datas.map((d) => hexlify(d).substring(2)).join("");
99}
100exports.concat = concat;
101/**
102 * Returns the length of %%data%%, in bytes.

Callers

nothing calls this directly

Calls 3

hexlifyFunction · 0.70
joinMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected