Javascript Concat Array Of Objects In Typescript Interview