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

Function isPullOptions

lib/internal/streams/iter/utils.js:213–220  ·  view source on GitHub ↗

* Check if a value is PullOptions (object without transform or write property). * @param {unknown} value * @returns {boolean}

(value)

Source from the content-addressed store, hash-verified

211 * @returns {boolean}
212 */
213function isPullOptions(value) {
214 return (
215 value !== null &&
216 typeof value === 'object' &&
217 !('transform' in value) &&
218 !('write' in value)
219 );
220}
221
222/**
223 * Check if a value is a stateful transform object (has a transform method).

Callers 2

parsePullArgsFunction · 0.85
parsePipeToArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…