Hi guys,

  if got the following code which may insert duplicate record in an Array:

                                                                      var 
userContactArray = new Array();
                                                                      var count 
= 0;                                 

                                                                  
$.each(item,function(j,item) {
                                                                    var 
usercontacts = { id:null, contactEmail:null,
contactName:null, source:null };
                                                                        
usercontacts.id = item.id;
                                                                        
usercontacts.contactEmail = item.contactEmail;
                                                                        
usercontacts.contactName = item.contactName;
                                                                        
usercontacts.source = item.source;
                                                                        
userContactArray[count] = usercontacts;
                                                                        count++;
                                                                  });
                                                              }

is there anyway we can remove the duplicate record inside the Array
(userContactArray) ?

Thanks & Regards,
Mark
-- 
View this message in context: 
http://www.nabble.com/Remove-duplicate-record-in-an-Array-tp16661989s27240p16661989.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to