if (myArray.indexOf(item) < 0) {
  myArray.push(item);
}