DEV Community

Discussion on: Includes() vs indexOf() in JavaScript

Collapse
 
nikhilnanjappa profile image
Nikhil Nanjappa • Edited

You forgot to mention one of the main differences between includes() and indexOf().

IE does not support includes() whereas it supports the other.

Collapse
 
johnsamuelob profile image
John Samuel Obinna

Yeah. Very true.

Thanks

Collapse
 
debo07 profile image
Debajit Majumder

I think IE11 started supporting Array.prototype.includes. Exact version that I'm using is 11.904.16299.0