Remove duplicate value from array || New set method in javascript || Javascript || Javascript Course

preview_player
Показать описание
This is javascript tutorial 12. In this vide I've shown how to remove duplicate value from array. I used new Set for removing duplicate value from array. new Set create a new object and remove duplicate. This Set keyword is predefined in ES6.

THANKS FOR WATCHING
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Follow me on:-

#javascript #newset #javascripttutorial #javascriptcourse
Рекомендации по теме
Комментарии
Автор

It is working but filter method is best

nothinganything
Автор

Thank you so much for your videos!! they're very usefull!
i have one question: i want to print this array, var sets in a loop in html, but it doesn't work
var stampa="";
var i;
var array= ["a", "b", "c", "d", "a", "c"];
var sets= new Set(array);
for(i in array){
stampa+=sets[i];
}

can u please help me?
Diana

dianaskitsko