js/bootstrap-select.js
function isEqual (array1, array2) {
    return array1.length === array2.length && array1.every(function (element, index) {
      return element === array2[index];
    });
  }
function isEqual (array1, array2) {
    return array1.length === array2.length && array1.every(function (element, index) {
      return element === array2[index];
    });
  }
function isEqual ( array1 , array2 ) { return array1 . length === array2 . length && array1 . every ( function ( element , index ) { return element === array2 [ index ] ; } ) ; }
shallow array comparison
shallow array comparison