9951 explained code solutions for 126 technologies
var list = [1, 2, 3, 4, 5, 5]; var unique = [...new Set(list)];ctrl + cyoutubegithub
var list = [1, 2, 3, 4, 5, 5]; var unique = [...new Set(list)];
var list
declare test array to get unique values from
new Set(list)
store unique values from passed list array (docs)
list
var unique
will contain final list with unique values only