From f30dca9e48ed0b81dfd35a94f0873b7450fe9587 Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Tue, 12 Jan 2016 00:32:23 -0800 Subject: [PATCH] fix(fromObservable): expand compatibility for iterating string source closes #1147 --- src/observable/from.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/observable/from.ts b/src/observable/from.ts index a93716157a..502e90b07c 100644 --- a/src/observable/from.ts +++ b/src/observable/from.ts @@ -26,7 +26,7 @@ export class FromObservable extends Observable { return new ArrayObservable(ish, scheduler); } else if (isPromise(ish)) { return new PromiseObservable(ish, scheduler); - } else if (typeof ish[SymbolShim.iterator] === 'function') { + } else if (typeof ish[SymbolShim.iterator] === 'function' || typeof ish === 'string') { return new IteratorObservable(ish, null, null, scheduler); } }