Is there a way to combine arrays of arrays in Angular?
const b: any = [];
b.push(
[
{ date: "2019-12-20 08:08:00" },
{ date: "2019-12-20 08:08:00" },
{ date: "2019-12-21 08:08:00" }
],
[{ date: "2019-12-20 08:08:00" }, { date: "2019-10-20 08:08:00" }],
[{ date: "2019-12-20 08:08:00" }, { date: "2019-12-30 08:08:00" }]
);
uniq(flatten(b, true), true, item => item.date); //error here
Error: Expected 1 argument, but received 3.
Also, how can duplicates be removed using Lodash uniqBy function?
Expected result:
[
"2019-12-21 08:08:00",
"2019-12-20 08:08:00",
"2019-12-30 08:08:00"
]