How to check if an array is empty or exists using JavaScript?

How to check if an array is empty or exists using JavaScript?

More to explore

Based on this image's title: “How to check if an array is empty or exists using JavaScript?