Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 350 Bytes

ban-comma-operator.md

File metadata and controls

13 lines (7 loc) · 350 Bytes

Pattern: Use of , operator

Issue: -

Description

Bans the comma operator. It can be easily misunderstood or lead to unintended bugs.

For example, in let x = (y = 1, z = 2); x is equal to 2 - this may not be immediately obvious.

Further Reading