how to check if an array isempty code example Example: check if array is empty javascript array.length = []