Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Any array in JSON object is not empty

data = {
  'a': [],
  'b': [],
  'c': [1,2,3]
}

result = any(item for item in data.values())

print(result)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Any #array #JSON #object #empty
ADD COMMENT
Topic
Name
6+9 =