3 ms·
Syntactic sugar is the important part here. You can always pass an object and handle defaults and default merging within the function body, sure. I use JavaSc
by Waterluvian 8y ago
Syntactic sugar is the important part here.
You can always pass an object and handle defaults and default merging within the function body, sure.
I use JavaScript a ton and I do love object spread and array destructuring. But writing function signatures is still very clumsy.