I have an array
[ { "name":"BMW", "price":"55 000", "color":"red", }, { "name":"MERSEDEC", "price":"63 000", "color":"blue", } ]; It is necessary to write a function that will accept an input at the input and instead of the name will output a class instead of the name
"class":"MERSEDEC", "price":"63 000", "color":"blue", What method to use?
marka? - Dmytryk