JSFiddle - React, Tailwind, and code Playground
JavaScript
var x = ["AAA", "aaa", "bbb", "BBB"];
function unique(list) {
var result = [];
$.each(list, function(i, e) {
if ($.inArray(e, result) == -1) result.push(e);
});
return result;
}
alert(unique(x));