# Get last element of an array?

**URL:** https://forum.kirupa.com/t/get-last-element-of-an-array/295611
**Category:** Uncategorized
**Created:** [September 1, 2009, 11:43pm UTC](https://forum.kirupa.com/t/get-last-element-of-an-array/295611 "2009-09-01T23:43:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flyingmonkey456](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@flyingmonkey456](https://forum.kirupa.com/u/flyingmonkey456)
#### Post date: [September 1, 2009, 11:43pm UTC](https://forum.kirupa.com/t/get-last-element-of-an-array/295611/1 "2009-09-01T23:43:19Z")

</div>

is there a way to get the last element of an array without having to either find the length or pop and push? I hate to start a thread for such a simple question, but i checked the actionscript dictionary and it didn’t have anything.
