MCPcopy Create free account
hub / github.com/sindresorhus/execa / isUint8Array

Function isUint8Array

lib/utils/uint-array.js:8–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7// Is either Uint8Array or Buffer
8export const isUint8Array = value => objectToString.call(value) === '[object Uint8Array]';
9
10export const bufferToUint8Array = buffer => new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
11

Callers 9

getInputTypeFunction · 0.90
getStdioItemTypeFunction · 0.90
validateSerializableFunction · 0.90
getAllSyncFunction · 0.90
getSubprocessResultFunction · 0.90
validate.jsFile · 0.90
serializeMessageItemFunction · 0.90
joinToUint8ArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected