Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.

Commit abd601f

Browse files
committed
refactor(rxPipes): isObservable to check type
1 parent dc79fd0 commit abd601f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/rxPipes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {ObservablePipe} from 'angular2/pipes';
66
import * as Rx from 'rx';
77

88
export function isObservable(obs) {
9-
return obs && obs.subscribe;
9+
return obs && typeof obs.subscribe === 'function';
1010
}
1111

1212
export class RxPipe extends ObservablePipe {

0 commit comments

Comments
 (0)