...
? ...
puede tomar objetos iterables en ES6 y convertirlos en matrices. Vamos a crear un Set, y echa un vistazo a la función de propagación. var set = new Set ([1,2,3]);
var setToArr = [... set]
console.log (setToArr) // devuelve [1, 2, 3]
checkSet
. Debe devolver una matriz que contenga los valores del conjunto. Ahora que aprendió a usar el objeto Set()
ES6, ¡buen trabajo!