Skip to content

Commit ef2405f

Browse files
Dimitri POSTOLOVphryneas
andauthored
Update src/jsutils/instanceOf.ts
Co-authored-by: Lenz Weber-Tronic <[email protected]>
1 parent e0f522a commit ef2405f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsutils/instanceOf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { inspect } from './inspect.js';
88
*/
99
export const instanceOf: (value: unknown, constructor: Constructor) => boolean =
1010
/* c8 ignore next 6 */
11-
typeof process === 'undefined' || process.env.NODE_ENV === 'production'
11+
typeof process !== 'undefined' && process.env.NODE_ENV === 'production'
1212
? function instanceOf(value: unknown, constructor: Constructor): boolean {
1313
return value instanceof constructor;
1414
}

0 commit comments

Comments
 (0)