6 lines
93 B
JavaScript

function mixImmediate(a, b) {
return (p) => (p > 0 ? b : a);
}
export { mixImmediate };