Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit d46a7b0

Browse files
committed
pipe: don't coerce all values to strings
Node.js streams in object mode accept input other than strings, and streams in object mode don't coerce their values when piping to other streams. So to be consistent, neither should Observables; Rx users should map(String) if they need this coercion.
1 parent 5fc6c6d commit d46a7b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/linq/observable/pipe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
source.subscribe(
1616
function (x) {
17-
!dest.write(String(x)) && source.pause();
17+
!dest.write(x) && source.pause();
1818
},
1919
function (err) {
2020
dest.emit('error', err);

0 commit comments

Comments
 (0)