I have data array which is like {date: "2019-10-08", value0: 68}
I only want to extract all dates so the result is like:
{date: "2019-10-08"}
{date: "2019-11-08"}
{date: "2019-12-08"}
I have tried the line of code below but it only gives me all the date values like
resultArr.forEach(AllDate => dateArr.push(AllDate.date));
["2019-10-08","2019-11-08","2019-12-08"] this is not what i want.
i would like the text "date" i am looking for this.
{date: "2019-10-08"}
{date: "2019-11-08"}
{date: "2019-12-08"}
