I tried several of the map functions but could not find a proper way to get what I want. Here is the case:
Object {Results:Array[3]}
Results:Array[3]
[0-2]
0:Object
id=null
name: "Rick"
upper:"0.67"
1:Object
id="00379321"
name:null
upper:"0.46"
2:Object
id="00323113"
name:null
upper:null
I want my final result to look like this. I wanted all null values to be removed and all the entries tied up like this in an object.
var finalResult = ["Rick","0.67","00379321","0.46","00323113"];
How can I achieve this result?