Skip to content

Some more JS modernization

Florian Müllner requested to merge fmuellner/gnome-shell:js-cleanups into master

Another batch of cleanups to modernize the codebase:

  • replace Array.indexOf() with Array.includes() where we aren't interested in the index
  • replace C-style for loops with for..of, for..in and similar constructs

Other suggestions1 are welcome.

  1. other than moving to ES6 classes, which will break inheritance in extensions and thus requires some heads-up to extension authors

Merge request reports