|
|
|
|
|
by drath
1732 days ago
|
|
This should really be solved by using named parameters or by writing docblocks so that IDE can show hints. Another trick, at least in js, is to use destructuring assignment, e.g. function calc_formula({a, b, is_gain}){
...
}
calc_formula({a:1, b:2, is_gain:true})
|
|