Good afternoon, please tell me, I have an array consisting of numbers, how can I make the part of the array that stands after the number before each unit be transferred to a new line?
My App.vue:
<template>
<div id="app">
<div class="mounth">{{ mounthDays }}</div>
</div>
</template>
<script>
export default {
name: 'app',
data () {
return {
mounthDays: [],
}
},
mounted() {
for (var x = 0; x < 12; x++) {
for (var i = 1; i <= 31; i++) {
this.mounthDays.push(i)
}
}
if(this.mounthDays[123] === 31){
this.mounthDays.splice(59, 3)
this.mounthDays.splice(120, 1)
this.mounthDays.splice(181, 1)
this.mounthDays.splice(273, 1)
this.mounthDays.splice(334, 1)
}
console.log(this.mounthDays)
}
}
</script>