GitHub

observe

Converts a value to an observable. If the value is an observable, just returns that observable. If the value is a promise, converts it to an observable (see rxjs from). If the value is neither, just returns an observable that immediately emits the value.

function observe<T>(val: any): Observable<T>