const input = [
['usd', 'buy', 10000],
['usd', 'sell', 5000],
['gbp', 'buy', 9000],
['eur', 'sell', 7000],
['uah', 'buy', 10000],
['usd', 'sell', 25000],
];
const myObj = input.reduce((a, key) => Object.assign(a, {
[key[0]] : key[2]
}), {}) не подскажете как добавить в объект ключ 'operation' со значением key[1]?