Currying is a technique in functional programming where a function that takes multiple arguments is transformed into a sequence of functions that each take a single argument.
Currying 是一種函式編程(程式設計的一種,可以參考此篇文章)技術,將接收多個參數的函式,拆解為多個函式,每個函式只接受一個參數
函數原型 call、apply、bind 方法可以用來改變 this 指向的對象,bind 和其他兩個方法 call、apply 較不同,call、apply 會直接執行函式,bind 只是將 this 綁定到函式內,並不會實際執行,這樣說明還是有點難懂,那就接下去看看吧。
Update your browser to view this website correctly. Update my browser now