I am trying to return stream from the function and when I console.log(\'emitter: \', emitter); it turns out as undifined Here you will
stream
console.log(\'emitter: \', emitter);
undifined