Hey! This is Partial Application - kdaisho/Blog GitHub Wiki

This is what we call Partial Application pattern?

const multiply = (a, b) => a * b;

function prefill = (fn, prefilledValue) {
    const inner = liveInput => {
        const output = fn(liveInput, prefilledValue);
        return output;
    };
    return inner;
}

const multiplyBy2 = prefill(multiply, 2);

const result = multiplyBy2(5); //10