substack/js-traverse — pull request #22 by gfxmonk (2012-06-23 02:24:42+00:00)
Title: Allow customising isTraversable() to traverse non-objects

I'm using js-traverse to traverse functions, prototypes and other non-objects, so I added this. The default behaviour remains the same but can be customised by passing a predicate to this.isTraversable() during a walk.