Varadic args are always last in javascript #3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "varadic-and-named"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
👯