3 ms·
Rarely use ifs? What do you do if you want to see if, e.g. there are any results for the user's query? I would do if (results.length > 0) or something
by robfig 15y ago
Rarely use ifs?
What do you do if you want to see if, e.g. there are any results for the user's query?
I would do
if (results.length > 0)
or something