Inspectopedia
 
2024.3

'if' can be replaced with 'match' expression

Info
New
Last modified: 03 December 2024

Reports the if statements inside if-elseif-else constructs that use strict comparisons (===) and could be replaced with match expressions.