Oct 12, 2022
Thanks for your comment.
Take another look at the code example. You'll notice that the issue is that, while not all arguments are mandatory, I needed to pass in an optional argument that was the last argument in the function definition.
A destructured object would avoid this issue, enforce descriptive naming conventions, and allow me to pass the parameters in any order.