IsObservable

isObservable is a method to check whether the object is an observable object.

1
import { isObservable } from "dob"

Usage

1
isObservable(obj)

Example

1
2
3
4
const obj1 = {}
const obj2 = observable({})

console.log(isObservable(obj1), isObservable(obj2))