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

Function isBinary

packages/socket.io/client-dist/socket.io.js:3067–3069  ·  view source on GitHub ↗

* Returns true if obj is a Buffer, an ArrayBuffer, a Blob or a File. * * @private

(obj)

Source from the content-addressed store, hash-verified

3065 * @private
3066 */
3067 function isBinary(obj) {
3068 return withNativeArrayBuffer && (obj instanceof ArrayBuffer || isView(obj)) || withNativeBlob && obj instanceof Blob || withNativeFile && obj instanceof File;
3069 }
3070 function hasBinary(obj, toJSON) {
3071 if (!obj || _typeof(obj) !== "object") {
3072 return false;

Callers 5

addMethod · 0.90
_deconstructPacketFunction · 0.90
hasBinaryFunction · 0.70
_deconstructPacketFunction · 0.70
socket.io.jsFile · 0.70

Calls 1

isViewFunction · 0.70

Tested by

no test coverage detected