JavaScript Array Filter Duplikat di 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);