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