MCPcopy Create free account
hub / github.com/CashScript/cashscript / concat

Function concat

packages/utils/test/fingerprint.test.ts:10–12  ·  view source on GitHub ↗
(...parts: Array<Uint8Array | number>)

Source from the content-addressed store, hash-verified

8} from '../src/index.js';
9
10const concat = (...parts: Array<Uint8Array | number>): Uint8Array => (
11 flattenBinArray(parts.map((part) => (typeof part === 'number' ? Uint8Array.of(part) : part)))
12);
13
14const zeroes = (length: number): Uint8Array => new Uint8Array(length);
15

Callers 2

p2pkhFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected