how to check array is empty in angular 8 code example Example: javascript how to check if array is empty if(array.length > 0)