3 ms·
JavaScript's IIFEs can act like that: function big(x, y, z) { const firstBitResult = ((x, y, z) => { ... })(x, y, z) con
by leppr 8y ago
JavaScript's IIFEs can act like that:
function big(x, y, z) {
const firstBitResult = ((x, y, z) => {
...
})(x, y, z)
const secondBitResult = ((x, y, z) => {
...
})(x, y, z)
...
}
I've used this trick when hacking out on quick-hack-turns-into-humongous-mess type projects.