Tutorialsplane

Vue.js get Array Last Item


We can get array last item in using index of last item. We can use length of array to get the last item. Here in this article, we are going to explain how you can get the last item from vuejs array. You can also use our online editor to edit and run the code online.


Vue.js get Array Last Item Example

You can get last item from array or object in vuejs simply as below-

Example:


Try it ยป

Output of above example-