function removeDuplicatesMulti(array) {
// Declare a new array
var newArray = [];
// Declare an empty object
var uniqueObject = {};
// Loop for the array elements
for (var i in array) {
// Extract the title or key based on duplicate finding
objTitle = array[i]['ID'];
// Use the title as the index
uniqueObject[objTitle] = netSerices[i];
}
// Loop to push unique object into array
for (i in uniqueObject) {
newArray.push(uniqueObject[i]);
}
return newArray;
}
// Declare a new array
var newArray = [];
// Declare an empty object
var uniqueObject = {};
// Loop for the array elements
for (var i in array) {
// Extract the title or key based on duplicate finding
objTitle = array[i]['ID'];
// Use the title as the index
uniqueObject[objTitle] = netSerices[i];
}
// Loop to push unique object into array
for (i in uniqueObject) {
newArray.push(uniqueObject[i]);
}
return newArray;
}