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

wants to merge 1 commit into

2 participants


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.


+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