Sha256: e1ae7b84cc4d2ced32738386350d99af0ea332b6d4ed9b818b458c4c1cce8a38
Contents?: true
Size: 438 Bytes
Versions: 26
Compression:
Stored size: 438 Bytes
Contents
/** * Returns a boolean indicating whether the current browser * supports `ReadableStream` as a `Transferable` when posting * messages. */ export function supportsReadableStreamTransfer() { try { const stream = new ReadableStream({ start: (controller) => controller.close(), }) const message = new MessageChannel() message.port1.postMessage(stream, [stream]) return true } catch { return false } }
Version data entries
26 entries across 26 versions & 1 rubygems