I'm wondering if it's considered valid, from a functional programming perspective, to include declarations and ternaries while currying in Javascript, like so:
const one = (a) => {
return (b) => {
return (c) => {
const new = c + b;
return new > 10 ? new : a;
}
}
}
Is this valid?