9 Replies Latest reply on Jun 30, 2009 1:18 PM by kglad

    comparing array's?

    Wasim Khamlichi



      I have an array which has strings for the key instead of numbers, e,g ;



      product['id'] = 1;

      product['option'] = "option";

      product['price'] = 1.99;



      when i use .toString() on this array, it does not output a string, leading me to believe that .toString only works when you have numerical keys. Is there an easy way I could compare two of the above arrays?