原创 Js 數組去重

Array.prototype.unique5 = function() {    var res = [], hash = {};    for(var i=0, elem; (elem = this[i]) != null; i++)