Is it possible to use named argument in javascript?
E.g.
void method (int a, int b);
method(a:1, b:2);
In javascript you could do this:
function method(foo) {
// use foo.a and foo.b here
}
and then call it like this:
method({ a: 1, b: 2 });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With