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

Function isTransformObject

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

* Check if a value is a stateful transform object (has a transform method). * @param {unknown} value * @returns {boolean}

(value)

Source from the content-addressed store, hash-verified

225 * @returns {boolean}
226 */
227function isTransformObject(value) {
228 return typeof value?.transform === 'function';
229}
230
231/**
232 * Check if a value is a valid transform (function or transform object).

Callers 3

isTransformFunction · 0.85
createSyncPipelineFunction · 0.85
createAsyncPipelineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected