= (...args) => {
if (fn.length !== args.length){ return curried.bind(null, ...args) }
return fn(...args); }; }
What's meaning of the if (fn.length !== args.length) ?
Function.length is the number of arguments of that function function hello(a, b){} hello.length //2
But what happens if we create anew function by bind?
Обсуждают сегодня