title: is there any way to use .indexOf to search a javascript array in mirth?
body: <p>I am trying to find a string in a javascript array in the transformer of a mirth channel. Mirth throws an error when I try to use indexOf function. My understanding is that indexOf is something that browsers add in, rather than a native part of the javascript language itself. ( <a href="https://stackoverflow.com/questions/237104/array-containsobj-in-javascript">How do I check if an array includes an object in JavaScript?</a> )  </p>
  
  <p>So is array.indexOf just not supported in Mirth? Is there any way to use .indexOf in Mirth? Maybe an alternate syntax? Or do I need to just loop thru the array to search?</p>