array55 = [3,7,1,8,3,8,5,4,4,2,1,3,6,6]; uniqueArray = array55.filter(function(elem, pos) { return array55.indexOf(elem) == pos; });