I have an array of objects like this:
myArray = [
{itemOneKey: 'itemOneValue', itemTwoKey: 'itemTwoValue'},
{itemThreeKey: 'itemThreeValue'}
];
I wish to turn it to a single object like this:
myObject = {
itemOneKey: 'itemOneValue',
itemTwoKey: 'itemTwoValue',
itemThreeKey: 'itemThreeValue'
}
in TypeScript. Anyone have a clue how I can go about to achieve this?