How can I pre-set arguments in JavaScript function call? (Partial Function Application)

前端 未结 7 1659
时光取名叫无心
时光取名叫无心 2020-11-27 11:25

I am trying to write a JavaScript function that will return its first argument(function) with all the rest of its arguments as preset parameters to that function.

So

7条回答
提交回复
热议问题