Contact: aviboots(AT)netvision.net.il
39,009 questions
50,723 answers
573 users
const arr = ['node.js', 'c', 'c++', 'java']; const value = 'c#'; if (!arr.includes(value)) { arr.push(value); } console.log(arr); /* run: [ 'node.js', 'c', 'c++', 'java', 'c#' ] */