Skip to content

Commit

Permalink
fix(fromObservable): expand compatibility for iterating string source
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Jan 12, 2016
1 parent 39e6c0e commit f30dca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/observable/from.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class FromObservable<T> extends Observable<T> {
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<T>(<any>ish, null, null, scheduler);
}
}
Expand Down

0 comments on commit f30dca9

Please sign in to comment.