Qubit interview question

Write in vanilla javascript a debounced currying