6 Replies Latest reply on May 10, 2016 12:17 PM by tarekahf

    Searching Arrays - indexOf

    Chuck Uebele Adobe Community Professional & MVP

      I was trying to search an array, and on the web it says to use something like this:

       

      var tA = ['one','two'];

      $.writeln(tA.indexOf ('one'))

       

      However, when I try this, I get: tA.indexOf is not a function."  It works with a string variable but not an array.  Is this a bug, or an I doing something wrong?