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