We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
typeof process === 'undefined'
1 parent 6cc7d06 commit e0f522aCopy full SHA for e0f522a
src/jsutils/instanceOf.ts
@@ -8,7 +8,7 @@ import { inspect } from './inspect.js';
8
*/
9
export const instanceOf: (value: unknown, constructor: Constructor) => boolean =
10
/* c8 ignore next 6 */
11
- process.env.NODE_ENV === 'production'
+ typeof process === 'undefined' || process.env.NODE_ENV === 'production'
12
? function instanceOf(value: unknown, constructor: Constructor): boolean {
13
return value instanceof constructor;
14
}
0 commit comments