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

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -