In functional programming you often want to apply a function partly. A simple example is a function add
.
It would be nice if we could use add
like:
var res2 = add(1, 3); // => 4
var add10To = add(10);
var res = add10To(5); // => 15
(() => { | |
document.querySelector('[data-disable-with^=Loading]')?.click(); | |
setTimeout(() => document.querySelectorAll('.Details-content--closed').forEach(x => x.click()), 4000) | |
})() |