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

Function popCallback

lib/internal/streams/pipeline.js:71–77  ·  view source on GitHub ↗
(streams)

Source from the content-addressed store, hash-verified

69}
70
71function popCallback(streams) {
72 // Streams should never be an empty array. It should always contain at least
73 // a single stream. Therefore optimize for the average case instead of
74 // checking for length === 0 as well.
75 validateFunction(streams[streams.length - 1], 'streams[stream.length - 1]');
76 return streams.pop();
77}
78
79function makeAsyncIterable(val) {
80 if (isIterable(val)) {

Callers 1

pipelineFunction · 0.85

Calls 1

popMethod · 0.80

Tested by

no test coverage detected