Write a custom debounce function in JavaScript · InterviewLane