So I'm looking to make my ES6 JavaScript code compatible with IE11, but I'm having some issues.
Here is the return for var res inside Google Chrome:

Tip: category is the key, result[category] is the value.
Here is the code that I have:
for (var category in result) {
var res = Object.fromEntries(Object.keys(result[category]).filter(x => x !== 'Other').concat('Other').map(x => [x, result[category][x]]));
console.log(res);
}
Could someone guide me in the right direction on how I would be able to make var res compatible with IE11? Looks like Object.fromEntries and Object.keys might not be supported.