Another batch of cleanups to modernize the codebase:
Array.includes()where we aren't interested in the index
- replace C-style for loops with
for..inand similar constructs
Other suggestions1 are welcome.
other than moving to ES6 classes, which will break inheritance in extensions and thus requires some heads-up to extension authors