MCPcopy Index your code
hub / github.com/BlueWallet/BlueWallet / assertUint8Array

Function assertUint8Array

blue_modules/uint8array-extras/index.js:34–38  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

32}
33
34export function assertUint8Array(value) {
35 if (!isUint8Array(value)) {
36 throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof value}\``);
37 }
38}
39
40export function assertUint8ArrayOrArrayBuffer(value) {
41 if (!isUint8ArrayOrArrayBuffer(value)) {

Callers 5

concatUint8ArraysFunction · 0.85
areUint8ArraysEqualFunction · 0.85
compareUint8ArraysFunction · 0.85
uint8ArrayToBase64Function · 0.85
uint8ArrayToHexFunction · 0.85

Calls 1

isUint8ArrayFunction · 0.85

Tested by

no test coverage detected