Contact: aviboots(AT)netvision.net.il
40,772 questions
53,159 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#' ] */