first 3 array elemnts in vue js code example
Example: vue pick 20 items from array
<div v-if="showLess">
<div v-for="value in array.slice(0, 20)"></div>
</div>
<div v-else>
<div v-for="value in array"></div>
</div>
<button @click="showLess = false"></button>