var arrayName = []; if (arrayName.length === 0) { // Your code }
Array.isArray(emptyArray) && emptyArray.length