array check if empty or not code example Example: check if array is empty javascript array.length = []