Allow customising isTraversable() to traverse non-objects #22

Open
wants to merge 1 commit into
from

2 participants

@timbertson

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.

@adjohnson916

+1 - Unless there is a better way to traverse functions... @substack ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment