2 ms·
Not that I disagree with the article, ternaries are more powerful than && but for the first example, would `contacts.length > 0 && ...` suffice? It's also inte
by canaus 5y ago
Not that I disagree with the article, ternaries are more powerful than && but for the first example, would `contacts.length > 0 && ...` suffice?
It's also interesting that PayPal's team didn't have tests around a user with 0 contacts.