This idiom is in our style guide: https://github.com/Obvious/internal/blob/master/style-guide/js/style-rules.md#iterating-over-node-lists