Javascript Array pushArrayIfNotExist(element)
Array.prototype.pushArrayIfNotExist = function(element) { if (!this.ifArrayInArray (element)) { this.push(element);/*from w w w . ja va2s . com*/ } };