     expectStreamEvents(
       -> series(1, [1, 2, error(), 3]).filter(lessThan(3))
       [1, 2, error()])
+  it "extracts field values", ->
+    expectStreamEvents(
+      -> series(1, [{good:true, value:"yes"}, {good:false, value:"no"}]).filter(".good").map(".value")
+      ["yes"])
 
 describe "EventStream.map", ->
   it "should map with given function", ->
     expectStreamEvents(
-      -> series(1, [1, 2, 3]).map(times(2))
+      -> series(1, [1, 2, 3]).map(times, 2)
       [2, 4, 6])
   it "also accepts a constant value", ->
     expectStreamEvents(

    expectStreamEvents(
      -> repeat(1, [o]).take(3).map(".lol")
      ["wut", "wut", "wut"])

describe "EventStream.mapError", ->
  it "should map error events with given function", ->

    expectPropertyEvents(
      ->
        s = new Bacon.Bus()
        p = s.toProperty(1).map(times, 2)
        soon ->
          s.push 2
          s.error()
