I have the following jQuery script:
var greetingsArray = [
"Hello, Debbie!",
"Hello, Randy!",
"Hello, Carl!" ,
"Hello, Patrick!",
"Hello, Susan!",
"Hello, Susan!",
"Hello, Carl!"
];
$.uniqueSort(greetingsArray);
Is there a way to get the items that were removed from the array? If so, how would it be used to display a message showing these values?
For example, I have the following HTML:
<div id="greetings"></div>
I want to display removed duplicate greetings in that div element with the following jQuery script:
var greetingsRemoved = ...;
$("#id").html("Removed the following duplicate greetings: " + greetingsRemoved);
What can I put in place of ... to make that happen? I hope this is neither too difficult nor complicated.