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.
1 parent e0f522a commit ef2405fCopy full SHA for ef2405f
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
- typeof process === 'undefined' || 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