There is an array of objects, how to check if objects have empty values? An array of this type:
var data = [ { "test1": "", "test2": "2", }, { "test1": "1", "test2": "2", }, { "test1": "1", "test2": "", } ]; Actually, you need to output "2" to the console, i.e. in the array among all objects there are 2 empty values