How to merge or union the array of array 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 arguments, but got 3.
and remove the duplicate using the lodash uniqBy.
expected output:
[
    "2019-12-21 08:08:00",
    "2019-12-20 08:08:00",
    "2019-12-30 08:08:00"
]
 
     
    