# How to access arrays index?

**URL:** <https://forum.kirupa.com/t/how-to-access-arrays-index/329211>\
**Category:** Uncategorized\
**Created:** [August 1, 2012, 7:43pm UTC](https://forum.kirupa.com/t/how-to-access-arrays-index/329211 "2012-08-01T19:43:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeekTweak\_0](https://avatars.discourse-cdn.com/v4/letter/g/b5ac83/32.png) [@GeekTweak\_0](https://forum.kirupa.com/u/GeekTweak_0)\
**Post date:** [August 1, 2012, 7:43pm UTC](https://forum.kirupa.com/t/how-to-access-arrays-index/329211/1 "2012-08-01T19:43:04Z")

</div>

so say i have multiple arrays triggering a function via MouseEvent.CLICK, and i want to be able to access the function’s e.currentTarget (arrays) index.

so if blah[3] is the variable being clicked, it will return 3.

i am sure the answer is very simple… until i ask about doing it with a 2d array as well?.. thanks.
