Within the 'task' object, the value of the 'door' property can vary each time it is accessed:
var task = {};
task["123"] = [{"door":""}, {"door":""}, {"door":""}, {"door":""}];
task["456"] = [{"door":""}, {"door":"close"}, {"door":""}, {"door":""}];
task["789"] = [{"door":""}, {"door":""}, {"door":""}, {"door":""}];
We want to identify if there is an entry in the task object that contains an array item with a non-empty property value. In this case, only one such entry exists with a value of "close".
Instead of utilizing nested for loops to search for a non-empty value, are there alternative methods to achieve this? (perhaps using LINQ to write shorter code?)