# How fast is indexOf?

**URL:** <https://forum.kirupa.com/t/how-fast-is-indexof/310953>\
**Category:** flash\
**Created:** [June 23, 2010, 8:15pm UTC](https://forum.kirupa.com/t/how-fast-is-indexof/310953 "2010-06-23T20:15:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandylion13](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dandylion13](https://forum.kirupa.com/u/dandylion13)\
**Post date:** [June 23, 2010, 8:15pm UTC](https://forum.kirupa.com/t/how-fast-is-indexof/310953/1 "2010-06-23T20:15:49Z")

</div>

Hi… just wondering:

Does anyone know if using indexOf is faster than using a for loop?
