All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.javascript.rules.javascript.S4140.html Maven / Gradle / Ivy

There is a newer version: 10.20.0.29356
Show newest version

An array declared with missing ("sparse") elements is likely to be an error: an extra comma was inserted or perhaps the developer meant to insert the missing value and forgot.

Noncompliant Code Example

let a = [1, , 3, 6, 9];  // Noncompliant

Compliant Solution

let a = [1, 3, 6, 9];




© 2015 - 2025 Weber Informatics LLC | Privacy Policy