Skip to content

Support trailing comma after the last argument.#520

Merged
stevenh merged 1 commit intorobertkrimen:masterfrom
linuxerwang:master
May 3, 2024
Merged

Support trailing comma after the last argument.#520
stevenh merged 1 commit intorobertkrimen:masterfrom
linuxerwang:master

Conversation

@linuxerwang
Copy link
Copy Markdown
Contributor

Example:

function mergeObjects(x, y) { /* dummy body */}

mergeObjects(
    { "duck": "quack" },
    { "dog": "bark" }, // Allow trailing comma after the last argument.
);

Example:

```js
function mergeObjects(x, y) { /* dummy body */}

mergeObjects(
    { "duck": "quack" },
    { "dog": "bark" }, // Allow trailing comma after the last argument.
);
```
@stevenh stevenh merged commit 2d23528 into robertkrimen:master May 3, 2024
@tlimoncelli
Copy link
Copy Markdown

Thank you so much! I've wanted this feature for years!

(Take a peek at https://github.com/StackExchange/dnscontrol/releases/tag/v4.15.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants