SOURCE

function foo(a,b,c) {
    console.log(`a:${a}, b:${b} c:${c}`)
}

// 柯里化
const b = foo.bind(null, 'a')

const c = b.bind(null, 'b')

c('c')

console.log(b)
console 命令行工具 X clear

                    
>
console