I have a javascript function to populate dropdowns for individual table rows like:
$scope.possibleOptions = getUniqueValues($scope.yypeOptions, 'yypeOption')
    .map(function(id) {
            return {
                id: id,
                name: id
            });
function getUniqueValues(array, prop) {
    return [...new Set(array.map(item => item[prop]))];
}
where, $scope.yypeOptions is:
$scope.yypeOptions = [{
    yypeOption: "option1"
}, {
    yypeOption: "option2"
}];
I now have to make it compatible to IE. The spread and => operator is something I have to replace.
Went through this and this link. But I could not get any understanding how to replace the Set inside an Array feature.
 
     
     
     
     
    