0 / 60 seg.

You want to write a plugin that creates a new traversal function—such as parent() and children()—and behaves like the ones jQuery includes out of the box. It needs to correctly modify the list of selections jQuery tracks internally, build up a list of additional items, and return the merged collection. What do you need to return on the last line of the function in order for this plugin to work correctly?

$.fn.myTraverse = function() {
   // ... setup
   var additionalItems = [ /* some additional items for jQuery */ ];
   return // return what?
}