Javascript – How to search an array for duplicate by using substring
I am trying to filter an array for duplicate values by splitting/substring the elements. I need to split these data by "-" and search for duplicate string after the "-" and write the element with the duplicate string to the…