As of Javascript 1.6 indexOf()
is a method available for use with Arrays
. However, there’s one subtle difference when operating on a String
and an Array
, both are case sensitive, Array.indexOf()
is type sensitive. This is documented but for those of you who’ve not bothered with the documentation, and it’s not working as expected, here’s a heads up on a subtle gotcha …
Read the rest of this entry »
06
Jan