Determine array index value of "tapped" item for icon list item component

Quick question …

I’m using the icon list item component and I’m looking for a way to determine the index value of the “tapped” array item when the competent tap is triggered?

Figured out a way to do this using JavaScript and the findIndex() function …

You can also use MAP to give your array items an explicit index key:

MAP(myArray, SET_KEY(item, "index", index))