Dezina Posted on Nov 17, 2021 Convert string into number & check with the existing numbers, to find duplicate if(parseInt(item1) === item2 || item3 || item4 || item5 || item6 || item7 || item8 || item9 || item10) { console.log("Duplicate") } Top comments (0) Subscribe Submit Preview Dismiss Code of Conduct • Report abuse
Top comments (0)