MCPcopy
hub / github.com/BlueWallet/BlueWallet / assertString

Function assertString

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

Source from the content-addressed store, hash-verified

128// }
129
130function assertString(value) {
131 if (typeof value !== 'string') {
132 throw new TypeError(`Expected \`string\`, got \`${typeof value}\``);
133 }
134}
135
136const cachedEncoder = new globalThis.TextEncoder();
137

Callers 4

stringToUint8ArrayFunction · 0.85
base64ToUint8ArrayFunction · 0.85
stringToBase64Function · 0.85
hexToUint8ArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected