webMethod function definition

I’m trying to define a webMethod function in web.js file in Wix studio backend folder.
I’ve tried to replace the anonymous function and put a function name in the second parameter of webMethod? for some reason this does not work, is there a way to do it?
For example:

export function multiplyF(a,b){
return a*b
}

export const multiply = webMethod(Permissions.Anyone, multiplyF);

I’m not certain of the reason why you can’t but you can solve this by doing:

export const multiply = webMethod(Permissions.Anyone, (a, b) => multiplyF(a, b));

Thanks ! this syntax works.
My goal was to avoid defining the function parameters several times. Using this I will need to define it three times :slight_smile:
Does anyone from Velo team knows why my initial code does not work?