var array = ["Mike","Matt","Nancy","Adam","Jenny","Nancy","Carl"];
function removeDuplicate(array){
var uniqueNames = [];
$.each(names, function(i, el){
if($.inArray(el, uniqueNames) === -1) uniqueNames.push(el);
});
return uniqueNames;
}
var startTime = new Date().getTime();
function functionExecution();
var endTime = new Date().getTime();
var executionTime = endTime - startTime;
console.log(executionTime);