Answer the question
In order to leave comments, you need to log in
How not to produce cycles?
There is a JSON snippet
<div v-for="ammo in info" :key="ammo.caliber">
<div v-for="ammo in ammo.items" :key="ammo.name">
Answer the question
In order to leave comments, you need to log in
If you don't want to get an indexing error - no way.
If you want - you decide on the forehead info[0].items[0].name.
Tip - do not optimize ahead of time. Here there will be gags in productivity, then already analyze.
There is no difference in 1 or 2 cycles on the minimum number of elements.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question