# e.findIdx

**URL:** https://forum.makecode.com/t/e-findidx/16001
**Category:** Help
**Created:** [October 25, 2022, 7:56pm UTC](https://forum.makecode.com/t/e-findidx/16001 "2022-10-25T19:56:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![TakeTheL08](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/takethel08/32/7018_2.png) [@TakeTheL08](https://forum.makecode.com/u/TakeTheL08)
#### Post date: [October 25, 2022, 7:56pm UTC](https://forum.makecode.com/t/e-findidx/16001/1 "2022-10-25T19:56:59Z")

</div>

what is e.findIdx and why is it not a function?

(I need help deciphering a cryptic error. Project [here](https://arcade.makecode.com/S53783-67155-84353-61294))

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [October 26, 2022, 10:37pm UTC](https://forum.makecode.com/t/e-findidx/16001/2 "2022-10-26T22:37:49Z")

</div>

It looks as if you’re trying index the item variable, which is a part of a `SpritePos[]` (SpritePos array). There’s no comments in the code which makes it hard to understand, so if you could elaborate more and explain certain parts of the code, it would make the debugging process quite a bit.
