DEV Community

Cover image for Convert string into number & check with the existing numbers, to find duplicate
Dezina
Dezina

Posted on

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)