minor cleanup
straight copying examples from substack/js-traverse