3 ms·
They might have been technically legal since ES5, but they were only finalised this year (ES2017, with function params), and still don't seem to have full suppo
by RobertKerans 10y ago
They might have been technically legal since ES5, but they were only finalised this year (ES2017, with function params), and still don't seem to have full support. I've been burned a few times by that: I know that MDN article cited says they are, but code with trailing commas (esp objects) breaks in eg IE without transpilation
- allover 10y agoYeah as the article says they were only added for object literals in ES5, which is the main place the 'issue' comes up, and where I was making the comparison to Elm. That works in IE > ~7/8? without transpilation.