I'm trying to add to an array distinct item but this error appears "ReferenceError: $ is not defined" any help
function unique(list) {
var result = [];
$.each(list, function(i, e) {
if ($.inArray(e, result) == -1) result.push(e);
});
return result;
}