How to Check if Arrays in a Object Are All Empty? [duplicate]
问题 This question already has answers here : How do I loop through or enumerate a JavaScript object? (41 answers) Closed 3 years ago . So I need to pass in a object where each of its properties are arrays. The function will use the information held in each array, but I want to check if the whole object is empty empty (not just having no properties) by checking if each of its arrays are empty/null as well. What I have so far: function isUnPopulatedObject(obj) { // checks if any of the object's