MCPcopy
hub / github.com/socketio/socket.io / isView

Function isView

packages/engine.io-parser/lib/encodePacket.browser.ts:10–14  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

8
9// ArrayBuffer.isView method is not defined in IE10
10const isView = (obj) => {
11 return typeof ArrayBuffer.isView === "function"
12 ? ArrayBuffer.isView(obj)
13 : obj && obj.buffer instanceof ArrayBuffer;
14};
15
16const encodePacket = (
17 { type, data }: Packet,

Callers 2

encodePacketFunction · 0.70
encodePacketToBinaryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected