I have a project in ionic3 in which I have Firebase Array as follows.
List = {User3: true, User8: true, User9: false}
The parameter names are not fixed and can change. So when I receive the array in the above format, I need to list out only the users which are true. I need an array as follows.
User = {User3, User8,}
Fow do I list out the parameter names in a for loop.
for(let item of List){
//I need to write item.User3 in order to retrive the value. But parameter name User3 is not fixed.
}