10 ms·
This works in this case, but the pattern is less easy when the result is not a boolean. But I agree, in this specific case using a ternary operator after a nul
by jeroenhd 7y ago
This works in this case, but the pattern is less easy when the result is not a boolean.
But I agree, in this specific case using a ternary operator after a null check is probably easier.