Clone this repo:
  1. 4f981e3 Fix return type of test helper method (#90) by Nicholas Shahan · 9 weeks ago master
  2. 6608f88 Update license at top of file to match the repo LICENSE file (#89) by Nicholas Shahan · 9 weeks ago
  3. f4d675d Minor fixes and re-add PropertyChangeRecord equality. (#87) by Mark Egli · 9 weeks ago
  4. 5b88ef1 Fix new lints (#88) by Kevin Moore · 9 weeks ago
  5. dfb94b0 analyzer fatal infos by Kevin Moore · 8 months ago

Build Status

Support for detecting and being notified when an object is mutated.

An observable is a way to be notified of a continuous stream of events over time.

Some suggested uses for this library:

  • Observe objects for changes, and log when a change occurs
  • Optimize for observable collections in your own APIs and libraries instead of diffing
  • Implement simple data-binding by listening to streams

You may want to look at the former TC39 proposal Observe.observe, which was deprecated.


There are two general ways to detect changes:

  • Listen to Observable.changes and be notified when an object changes
  • Use Differ.diff to determine changes between two objects