import { BehaviorSubject, Observable } from 'rxjs' /** * Check whether the provided `Observable` is an instance of `BehaviorSubject`. * * @param observable observable to be checked * @typeParam T type of the observable value * @category Type Guard */ export function isBehaviorSubject (observable: Observable): observable is BehaviorSubject { return typeof (observable as any).getValue === 'function' }