Varadic args are always last in javascript #3

Merged
defunkt merged 1 commits from varadic-and-named into main 2025-10-23 20:30:23 +00:00
Collaborator

A native function like this wasn't working before:

function cow(atNamed = {}, ...rest: string[])

It was putting the varadic args in front of the named args. This keeps them all in the right place.

A native function like this wasn't working before: `function cow(atNamed = {}, ...rest: string[])` It was putting the varadic args in front of the named args. This keeps them all in the right place.
probablycorey added 1 commit 2025-10-23 18:22:23 +00:00
defunkt merged commit eb4f103ba3 into main 2025-10-23 20:30:23 +00:00
Owner

👯

👯
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: defunkt/ReefVM#3
No description provided.