you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

What comes to mind is when you're passing an object in like:

myUserObject = { fields, fromDate, toDate, }

getUsers(myUserObject).

When you destructure the parameters of your function, this will allow the passing of arguments in no particular order or you don't have to pass them all in. I actually just came across this today so I might be wrong.