Tip: Avoid explicit booleans
Tip: Avoid explicit booleans.
For example, avoid this:
if (x > y) {
return true
} else {
return false
}
Instead, do this:
return x > y;
Tip: Avoid explicit booleans.
For example, avoid this:
if (x > y) {
return true
} else {
return false
}
Instead, do this:
return x > y;