summaryrefslogtreecommitdiff
path: root/includes/external/school/node_modules/graphql/polyfills/objectEntries.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'includes/external/school/node_modules/graphql/polyfills/objectEntries.mjs')
-rw-r--r--includes/external/school/node_modules/graphql/polyfills/objectEntries.mjs9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/external/school/node_modules/graphql/polyfills/objectEntries.mjs b/includes/external/school/node_modules/graphql/polyfills/objectEntries.mjs
new file mode 100644
index 0000000..72d0c60
--- /dev/null
+++ b/includes/external/school/node_modules/graphql/polyfills/objectEntries.mjs
@@ -0,0 +1,9 @@
+/* eslint-disable no-redeclare */
+// $FlowFixMe[name-already-bound] workaround for: https://github.com/facebook/flow/issues/4441
+var objectEntries = Object.entries || function (obj) {
+ return Object.keys(obj).map(function (key) {
+ return [key, obj[key]];
+ });
+};
+
+export default objectEntries;