← HALL
Debounce Trailing Execution Loss
HARD
+500 XP REWARD
⏱ Limit: 15m
// MISSION BRIEFING //
ANOMALY DESCRIPTION
A debounce function is losing its target execution arguments and context when the timer expires. Refactor debounce to preserve 'this' and the latest arguments passed to the debounced function.
SPECIFICATION SUITE
Preserves arguments on trigger
Input: debounce((a, b) => a + b, 50)
Expected: function
Clears previous timer
[PROTECTED TEST]
Evaluation logic hidden to prevent hardcoding.
RADAR HINTS
Hint #1 (Click to decrypt)
Capture ...args in the returned function and invoke with fn.apply(this, args).
STATIC ANALYSIS CONSOLE
Ready for dispatch
Press "VERIFY & SUBMIT" or Ctrl+Enter to evaluate your patch.