Walk backward to find outer array

Calling walk.findNodeAround("[ [1], [2], [3], [4] ]", 20, "ArrayExpression") will give me the array [4].

However in such cases I’d like to walk backwards the tree and see if that found array way contained in another array. I want traverse back until I find a non-array expression (leaving the outer array).

Is that possible with the walk lib?

findNodeAround will return the innermost matching node. You’ll have to write a custom search function to do this, I guess.