We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
process.env
1 parent 1519fda commit a08aaeeCopy full SHA for a08aaee
src/jsutils/instanceOf.ts
@@ -9,7 +9,7 @@ import { inspect } from './inspect';
9
export const instanceOf: (value: unknown, constructor: Constructor) => boolean =
10
/* c8 ignore next 6 */
11
// FIXME: https://github.com/graphql/graphql-js/issues/2317
12
- globalThis.process?.env.NODE_ENV === 'production'
+ globalThis.process && globalThis.process.env.NODE_ENV === 'production'
13
? function instanceOf(value: unknown, constructor: Constructor): boolean {
14
return value instanceof constructor;
15
}
0 commit comments