eslint/no-sparse-arrays Correctness β
What it does β
Disallow sparse arrays.
Why is this bad? β
The confusion around sparse arrays is enough that itβs recommended to avoid using them unless you are certain that they are useful in your code.
Example β
javascript
var items = [, ,];
var colors = ["red", , "blue"];