Commit Graph

3 Commits

Author SHA1 Message Date
Adrian Leonhard
013bd56e6d Add test from #255 (confirmed that it fails on master) 2020-05-24 10:34:32 +02:00
Adrian Leonhard
7086cd685d ObservableGroupMap: add two more tests, minor restructure 2020-05-05 23:48:44 +02:00
Adrian Leonhard
5ff0b3f1a7 Add ObservableGroupMap
An ObservableGroupMap is constructed from a base IObservableArray and a `groupBy` function.
It maps `groupBy` values to IObservableArrays of the items in the base array which have groupBy(item) == key
The IObservableArrays are updated reactively when items in the base array are removed, changed or added.
Updates are done without iterating through the base array (except once at the beginning)
2020-05-04 15:41:01 +02:00