How can i get only the Date without the string value from below object?
0: {2020-09-02: "string_1", 2020-09-03: "string_2"}
1: {2020-09-01: "string_1", 2020-09-05: "string_2"}
My objective is to get the Date only and group them into one array.
Expected result: [2020-09-02, 2020-09-03, 2020-09-01, 2020-09-05]
What I tried so far is using Object.getOwnPropertyNames:
console.log('property name: ', Object.getOwnPropertyNames(getDateProperties)) // return ["0","1"]
Is this something possible to achieve?