mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
16 lines
194 B
JavaScript
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;
|