Pattern: Skipping multiple array elements in destructuring
Issue: -
While array destructuring is useful, skipping consecutive elements with empty slots makes code harder to read and understand. Consider using array methods or explicit indexing for clearer intent.
Example of incorrect code:
const [, , foo] = parts;
Example of correct code:
const [foo] = parts;