[].indexOf() isn’t supported in old IE. Utilizing jQuery’s $.inArray() allows for Select2 to work in IE compatibility mode.