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

Function isTypedArray

packages/isomorphic/utilityScriptSerializers.ts:74–80  ·  view source on GitHub ↗
(obj: any, constructor: Function)

Source from the content-addressed store, hash-verified

72}
73
74function isTypedArray(obj: any, constructor: Function): boolean {
75 try {
76 return obj instanceof constructor || Object.prototype.toString.call(obj) === `[object ${constructor.name}]`;
77 } catch (error) {
78 return false;
79 }
80}
81
82function isArrayBuffer(obj: any): obj is ArrayBuffer {
83 try {

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…