The isObservable function from the rxjs library is used to determine whether a given object is an Observable or not. It returns a boolean value of true if the object is an Observable, and false otherwise.
To use the isObservable function, first you need to import it from the rxjs library:
index.tsx37 chars2 lines
Then, you can call the function with the object you want to check as an argument:
index.tsx143 chars7 lines
Alternatively, if you are not using ES6 modules, you can load the isObservable function using a script tag:
67 chars2 linesAnd then use it in your code:
index.tsx148 chars7 lines
gistlibby LogSnag