.indexOf on arrays with IE

IE (at least version 7) has no implementation of ‘indexOf’ function on arrays.

Good news is that dojo has implemented a function just for this, and guess what, it’s dojo.indexOf().

Here is the signature of the function:

dojo.indexOf(/* array */haystack, /* mixed */ needle, /* integer? */fromIndex, /* boolean? */findLast);

sources

Post a Comment

Your email is never published nor shared. You're allow to say what you want...