MCPcopy Create free account
hub / github.com/apache/fory / isUint8Array

Function isUint8Array

javascript/packages/core/lib/util.ts:28–30  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

26export const hasBuffer = isNodeEnv && typeof Buffer !== "undefined";
27
28export function isUint8Array(obj: any): obj is Uint8Array {
29 return obj instanceof Uint8Array || Object.prototype.toString.call(obj) === "[object Uint8Array]";
30}

Callers 1

data2TypeInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected