4 ms·
I guess the alternative would be: if (isValidUser() && isValidData(data)) … Which would avoid the potentially expensive `validate()` without putting it al
by kentosi 10y ago
I guess the alternative would be:
if (isValidUser() && isValidData(data)) …
Which would avoid the potentially expensive `validate()` without putting it all on the one line.
- elwell 10y agoNot really, because the code comment above mentioned that one of the primary purposes of this technique is to reduce function overhead.