How to check if an array is empty or not using javascript

javascript-array-is-empty-or-not

While developing any application, array is mostly used variable to store the list of values. And in most of the scenarios you might want to check if array is empty or not, Here I’ll show you how can we check if array is empty or contains a value