function contains(array, item) {
  if (array && array.length && item) {
    return array.indexOf(item) !== -1;
  }
  return false;
}
function contains(array, item) {
  if (array && array.length && item) {
    return array.indexOf(item) !== -1;
  }
  return false;
}
function contains ( array , item ) { if ( array && array . length && item ) { return array . indexOf ( item ) !== - 1 ; } return false ; }
returns true if the value is present in the list.
returns true if the value is present in the list .
Returns true if the given item is in the array