ecmascript 6 - Javascript Multiple Extended Signature Test(1)(2)(3) or Test(1)(2,3) -
is possible create function in javascript allow me below:
test(1,2,3) test(1)(2,3) test(1)(2)(3)
i thinking of below: unsure called.
function test(a) { return function(b,c) { return a+b+c; } }
i looking fat arrow function , nothing mentioned this. unsure if new es6 or es7 function.
Comments
Post a Comment