Opal-Estate-Pro/node_modules/vinyl/lib/is-stream.js
2019-09-13 11:27:52 +07:00

16 lines
194 B
JavaScript

'use strict';
function isStream(stream) {
if (!stream) {
return false;
}
if (typeof stream.pipe !== 'function') {
return false;
}
return true;
}
module.exports = isStream;