Vue Implode Array
// If all you care about is comma separation,
// use Javascript's built-in join method:
{{ list.join(', ') }}
Index out of bounds
// If all you care about is comma separation,
// use Javascript's built-in join method:
{{ list.join(', ') }}
<script src="https://vuejs.org/js/vue.min.js"></script>
<div id="demo">
<span v-for="(list, index) in lists">
<span>{{list}}</span><span v-if="index+1 < lists.length">, </span>
</span>
</div>