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