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 43b94b7 commit 5ca2494Copy full SHA for 5ca2494
internal/errors.js
@@ -94,7 +94,7 @@ createErrorType('ERR_INVALID_ARG_TYPE',
94
95
// determiner: 'must be' or 'must not be'
96
let determiner;
97
- if (typeof expected === 'string' && expected.startsWith('not ')) {
+ if (typeof expected === 'string' && startsWith(expected, 'not ')) {
98
determiner = 'must not be';
99
expected = expected.replace(/^not /, '');
100
} else {
0 commit comments