If you have worked with JavaScript at any length you are aware that Internet Explorer does not implement the ECMAScript function for Array.prototype.indexOf() [includin
The underscore.js library has an indexOf function you can use instead:
_.indexOf([1, 2, 3], 2)