SurveyMonkey interview question

Implement debounce method using ES6+.