I would like the output format to display one player value followed by one monster value, repeating this pattern for each pair of values.
new Vue({
el: app,
data: {
output: {
player: [1, 5, 61, 98, 15, 315, 154, 65],
monster: [2,14, 15, 113, 19, 22,12,54,64],
},
},
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
<span>
<h6 v-for="i in Object.keys(output.player)">Player value :{{output.player[i]}}</h6>
<h6 v-if="output.monster[i]">Monster value :{{output.monster[i]}}</h6>
</span>
</div>