javascript check if a list of array is empty code example Example: check if array is empty javascript array.length = []