MCPcopy Create free account
hub / github.com/andywer/threads.js / isTransferable

Function isTransferable

src/transferable.ts:9–13  ·  view source on GitHub ↗
(thing: any)

Source from the content-addressed store, hash-verified

7}
8
9function isTransferable(thing: any): thing is Transferable {
10 if (!thing || typeof thing !== "object") return false
11 // Don't check too thoroughly, since the list of transferable things in JS might grow over time
12 return true
13}
14
15export function isTransferDescriptor(thing: any): thing is TransferDescriptor {
16 return thing && typeof thing === "object" && thing[$transferable]

Callers 1

TransferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected