Javascript: indexOf problem in empty array

development, jquery Add comments

Funny, but indexOf method doesn’t work in an empty array in Internet Explorer, the method is just not defined. Eh!

Forget about that and always use jQuery wrapper –

$.inArray(42, [31, 42, 53]);

Comments are closed.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in