maqetta/maqetta — comment on commit 79df30f6e09ee1c6a3cf430595cbee423add41a7
File: maqetta.core.server.standalone/WebContent/system/resource.js line 69
By peller:

just assign it to a local variable. Prevents multiple lookups, makes the code compress slightly better, and tends to be more readable.

Another option: use native Array.forEach, conditionally popping the array if !isFolder first. The function signature for the Array iterators also gives you that instance variable.