// Loaded from https://deno.land/x/graphql_deno@v15.0.0/lib/jsutils/toObjMap.js import objectEntries from '../polyfills/objectEntries.js'; export default function toObjMap(obj) { /* eslint-enable no-redeclare */ if (Object.getPrototypeOf(obj) === null) { return obj; } const map = Object.create(null); for (const [key, value] of objectEntries(obj)) { map[key] = value; } return map; }