plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js
function(needle) {
      if (Array.isArray(needle)) {
        for (var i = needle.length; i--;) {
          if (wysihtml5.lang.array(arr).indexOf(needle[i]) !== -1) {
            return true;
          }
        }
        return false;
      } else {
        return wysihtml5.lang.array(arr).indexOf(needle) !== -1;
      }
    }
function(needle) {
      if (Array.isArray(needle)) {
        for (var i = needle.length; i--;) {
          if (wysihtml5.lang.array(arr).indexOf(needle[i]) !== -1) {
            return true;
          }
        }
        return false;
      } else {
        return wysihtml5.lang.array(arr).indexOf(needle) !== -1;
      }
    }
function ( needle ) { if ( Array . isArray ( needle ) ) { for ( var i = needle . length ; i -- ; ) { if ( wysihtml5 . lang . array ( arr ) . indexOf ( needle [ i ] ) !== - 1 ) { return true ; } } return false ; } else { return wysihtml5 . lang . array ( arr ) . indexOf ( needle ) !== - 1 ; } }
Check whether a given object exists in an array

@example
wysihtml5.lang.array([1, 2]).contains(1);
// => true

Can be used to match array with array. If intersection is found true is returned
Check whether a given object exists in an array