The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

rwwilden (8) [Avatar] Offline
There's supposed to be some additional example code here: But since it's not available yet, I have a question concerning a suggestion from paragraph 7.4.2, p.199, the filterDocument function.

How do you write such a function? What happens when you match an element for which the filter function returns true? You can't return nothing.