diff --git a/js/compatibility.js b/js/compatibility.js index 744ff1e49b..9812f94fd7 100644 --- a/js/compatibility.js +++ b/js/compatibility.js @@ -3,3 +3,7 @@ import 'unfetch/polyfill'; import objAssign from 'es6-object-assign'; objAssign.polyfill(); + +if (Object.values === undefined) { + Object.values = target => Object.keys(target).map(key => target[key]); +}