Kokoma programme ya JavaScript pona kolongola ba éléments nionso oyo ezo doublé na array.
 Tala programme ya JavaScript pona kolongola ba éléments nionso oyo ezo doublé na array: ```fonction ya javascript removeDuplicates(array){ tika uniqueArray = [...new Set(array)]; zongisa uniqueArray; } tika arr = [1, 2, 3, 2, 4, 3]; tika résultat = longola baDuplicates (arr); console.log (résultat); ``` ### Sortie: [1, 2, 3, 4] Ndimbola: Na programme oyo ezali likolo, to définir fonction oyo ezali na kombo `removeDuplicates` oyo ezuaka array lokola argument. Na kati ya fonction oyo, tosalaki Ensemble ya sika pe tolekisaki array na biso na ensemble. Koleka array na Set longola ba valeurs nionso ya double na yango. Na sima tobongoli set oyo ya unique na sima na array na kosalelaka `...`(opérateur ya kopalanganisa). Donc, tozui uniqueArray na biso ya sika na ba doublons te.