This branch adds the ability to pass field-keys to where, in much the same way that you can call observable.map(".key").
It's useful to be able to filter or match on a field instead of the entire object. For example, if I have an event stream of records like {type: "click", data: ...}, I might want to match all objects with a certain type field: e.g. observable.where(".type").isEqualTo("click").
This branch adds the ability to pass field-keys to
where
, in much the same way that you can callobservable.map(".key")
.It's useful to be able to filter or match on a field instead of the entire object. For example, if I have an event stream of records like
{type: "click", data: ...}
, I might want to match all objects with a certaintype
field: e.g.observable.where(".type").isEqualTo("click")
.