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
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