Fixed filter() sample code.

The filter() method callback should return true/false, not the actual object.  The existing code technically worked, but was misleading and not ideal.
Merge pull request #642 from orrd/patch-2

Fixed filter() sample code.