Hacker News new | ask | show | jobs
by Sohcahtoa82 2386 days ago
If an API is expected to return an array, but the data set is empty, I expect an empty array. I should be able to go straight from the request to a for-each loop without checking for null.