Skip to content Skip to sidebar Skip to footer

Trailing Comma In JavaScript Function Call

I'm trying to follow the JS code style defined by Airbnb. The rule on trailing commas for function call arguments states: 7.15 Functions with multiline signatures, or invocations,

Solution 1:

My team just ran into this issue with a user who has Chrome 55.0.2883.87. This version of Chrome also reports unexpected token at ')' as reported above.

The trailing commas DO seem to be TOLERATED by Chrome 60.0.3112.113. No error.

So we can deduce that Google is moving towards support for the trialing comma.


Post a Comment for "Trailing Comma In JavaScript Function Call"