Query module TrailingComma

name
Trailing comma in array or object expressions
description
Trailing commas in array and object expressions are interpreted differently by different browsers and should be avoided.
kind
problem
problem.severity
recommendation
id
js/trailing-comma-in-array-or-object
tags
portability external/cwe/cwe-758
precision
low
deprecated
This is no longer a problem with modern browsers. Deprecated since 1.17.

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Classes

ArrayOrObjectExpr

An array or object expression.