Expressions that consistently result in either true or false when comparing values, and logical operations like ||, &&, and ?? that consistently either skip or fully evaluate their operands, often indicate mistakes. Logical operations that always yield the same result could lead to unexpected behavior or bugs in the program.
const arrIsEmpty = someArr === [] // Will always evaluate to false
const arrIsEmpty = someArr.length === 0