You forgot to mention one of the main differences between includes() and indexOf().
IE does not support includes() whereas it supports the other.
Yeah. Very true.
I think IE11 started supporting Array.prototype.includes. Exact version that I'm using is 11.904.16299.0
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.