Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function traverseGroup( group, fn ){
for( var i in group.children ){
var child = group.children[ i ];
fn( child );
traverseGroup( child, fn );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment