Javascript Array isUnique()
"use strict";/*from w ww.jav a 2 s . com*/ Array.prototype.isUnique = function(){ var that = this; var result = true; for (var i = 0; i < that.length; i++){ for (var j = i+1; j < that.length; j++){ if(that[i] === that[j]){ result = false; } } } return result; };