I have a rest API in Node.js, which outputs an array like:
[["Benni", 24, "Whatever"], ["Paul", 23, "Whatever"]]
Now in order to use it for an Angular Material table, I have to put the array in this format:
[{name: 'Benni', age: 24, Text: 'Whatever'}, {name: 'Paul', age: 23, Text: 'Whatever'},]
How can I achieve that?