I have an array like this:
let productsArray = [
{ name: 'Mandala - horgolt dekoráció', id: '148332', price: '3000', src: '200913183702_148332.jpeg', motto: 'Tipp: tedd egyedivé saját díszítéssel!'},
{ name: 'Nyulak fatörzsben', id: '971487', price: '5800', src: '200526104718_971487.jpeg', motto: 'Legyen vidám napod!' },
{ name: 'Filc díszek', id: '761519', price: '2800', src: '161029211220_761519.jpeg', motto: 'Legyen szép a karácsonyod!',}
];
console.log(productsArray);
If I get the ID from a button, how can I access the other keys within the array? For example, I know the ID=148332, so I need the price and the name. I need this without back-end if possible.
Thank you,