CristhGunners - Desarrollador de Software

Cristhofer Andana

Desarrollador de Software

Eliminar duplicados en un Array en Javascript

js

noviembre 16, 2022
const numbers = [5, 10, 5, 20];
const withoutDuplicates = Array.from(new Set(numbers));

// [5, 10, 20] 👇
console.log(withoutDuplicates);