Object.keys() Strict Indexing Type & Undefined Key Trap
What's Broken (Symptom)
Iterating `Object.keys(map)` crashes or produces undefined when keys are assumed strictly typed, and mutates inherited prototype keys.
Expected Behavior
- • Use `Object.entries(scores)` or explicit typed `keyof typeof scores` assertion with nullish guard (`?? 0`).
Debugging Hints (0/2 used)
Try spotting the bug in the editor first. Need a nudge? Reveal Hint 1 anytime.
Root Cause Breakdown
Pass all 1 automated verification checks on the right to unlock the full Root Cause explanation.
Automated Bug Verification
1 Checks Ready- Safely skips undefined or non-numeric entries without NaNSums only valid numbers cleanly.
Live Sandboxed PreviewCtrl + Enter to verify
Console Output0 log(s)
No console output yet. Run Preview or Verify Bug Fix.