MCPcopy Index your code
hub / github.com/nodejs/node / isMergeOptions

Function isMergeOptions

lib/internal/streams/iter/consumers.js:68–79  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

66// =============================================================================
67
68function isMergeOptions(value) {
69 return (
70 value !== null &&
71 typeof value === 'object' &&
72 !ArrayBufferIsView(value) &&
73 typeof value[toStreamable] !== 'function' &&
74 typeof value[toAsyncStreamable] !== 'function' &&
75 !isAsyncIterable(value) &&
76 !isSyncIterable(value) &&
77 !isAnyArrayBuffer(value)
78 );
79}
80
81// =============================================================================
82// Shared chunk collection helpers

Callers 1

mergeFunction · 0.85

Calls 2

isAsyncIterableFunction · 0.70
isSyncIterableFunction · 0.70

Tested by

no test coverage detected