core.js
function(val, item) {
    if (_.isString(val)) return val.indexOf(item) !== -1;
    if (_.isArray(val))  return _.indexOf(val, item) !== -1;
    if (_.isObject(val)) return _.has(val, item);
    return false;
  }
function(val, item) {
    if (_.isString(val)) return val.indexOf(item) !== -1;
    if (_.isArray(val))  return _.indexOf(val, item) !== -1;
    if (_.isObject(val)) return _.has(val, item);
    return false;
  }
function ( val , item ) { if ( _ . isString ( val ) ) return val . indexOf ( item ) !== - 1 ; if ( _ . isArray ( val ) ) return _ . indexOf ( val , item ) !== - 1 ; if ( _ . isObject ( val ) ) return _ . has ( val , item ) ; return false ; }
Check that an item contains another item, either a string, array, or object.
Check that an item contains another item either a string array or object .