isObservableBox
isObservableBox() returns true when the value is an observableBox().
Signature
function isObservableBox(value: unknown): boolean
Basic usage
import { computed, isObservableBox, observableBox } from "@fobx/core"
isObservableBox(observableBox(1)) // true
isObservableBox(computed(() => 1)) // false
Related API
Use isObservable() for a broader check that also
matches computeds and observable collections.