Skip to content

Commit f9eda2e

Browse files
committed
Do not rely on ES6 methods, fixes #99
1 parent 9f3effc commit f9eda2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities/schemaPrinter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function isDefinedType(typename: string): boolean {
3737
}
3838

3939
function isIntrospectionType(typename: string): boolean {
40-
return typename.startsWith('__');
40+
return typename.indexOf('__') === 0;
4141
}
4242

4343
function isBuiltInScalar(typename: string): boolean {

0 commit comments

Comments
 (0)