How to check if array contains a duplicate string , i have validateArray = [\'sa\',\'sa\',\'yu\'] i have used the following function from SO but same not working for me.
just use unique() method.
$.unique(reportRecipients);
https://api.jquery.com/jQuery.unique/