Describing demoList
:
demoList = [
{
id: 1,
validFrom: "2019-06-01T00:00:00",
validTo: "2020-06-17T00:00:00",
xxxM: 50,
xxxN: 2.2,
xxxQ45: 2,
xxxQ100: 1.65,
xxxQ125: null,
xxxQ150: null,
xxxQ250: null,
xxxQ300: null,
xxxQ500: null
},
{
id: 2,
validFrom: "2019-06-01T00:00:00",
validTo: "2020-06-17T00:00:00",
xxxM: 51,
xxxN: 22,
xxxQ45: 1.4,
xxxQ100: 1.65,
xxxQ125: null,
xxxQ150: 1.7,
xxxQ250: null,
xxxQ300: 0.15,
xxxQ500: null,
xxxQ700: 15.4
},
. . .
];
The desired array:
["M", "N", "45", "100", "150", "300", "700"]
I am looking for a way to extract an array of non-empty values starting with xxx from the demoList in angular. How can this be accomplished?