The strict equality operator is of the form
left === right
There isn’t any particular need to wrap either part in ()
s. But you have to wrap the part after if
in ()
s
if (left === right) {
// ...
}
It can sometimes make things clearer in examples, but the ()
s are really strange around single values.