MCPcopy
hub / github.com/microsoft/playwright / isArrayBuffer

Function isArrayBuffer

packages/isomorphic/utilityScriptSerializers.ts:82–88  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

80}
81
82function isArrayBuffer(obj: any): obj is ArrayBuffer {
83 try {
84 return obj instanceof ArrayBuffer || Object.prototype.toString.call(obj) === '[object ArrayBuffer]';
85 } catch (error) {
86 return false;
87 }
88}
89
90const typedArrayConstructors: Record<TypedArrayKind, Function> = {
91 i8: Int8Array,

Callers 1

innerSerializeFunction · 0.85

Calls 1

callMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…