What it changes
Rewrites classicfor loops as equivalent while loops. for...in and
for...of loops stay unchanged.
Before and after
Configuration
Run this transform by settingtransforms.forToWhile to true:
obfuscate.mjs
View the implementation
Open the TypeScript implementation on GitHub.
Read the behavior tests
Review behavior checks and cases this transform leaves alone.