1Uses of currying function
2 a) It helps to avoid passing same variable again and again.
3
4 b) It is extremely useful in event handling.
5
6syntax:
7
8 function Myfunction(a) {
9 return (b) => {
10 return (c) => {
11 return a * b * c
12 }
13 }
14 }
15
16
17myFunction(1)(2)(3);
1Uses of currying function
2 a) It helps to avoid passing same variable again and again.
3
4 b) It is extremely useful in event handling.
5
6syntax:
7
8 function Myfunction(a) {
9 return (b) => {
10 return (c) => {
11 return a * b * c
12 }
13 }
14 }