const target = { a: {b: {c: 1 } } }
const observable = singleObserver(target)
console.log(isObservable(observable)) // T
observable.subscribe(() => {
console.log('changed')
})
observable.a.b.c = 1
// print changed
observable.a.b = { d: 'foo' }
// print changed
single-observer
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||