Duplications de filtre JavaScript Array dans React
const uniqueNames = names.filter((val,id,array) => array.indexOf(val) == id);
Disturbed Dolphin
const uniqueNames = names.filter((val,id,array) => array.indexOf(val) == id);