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 8c7e5e9 commit d04f84aCopy full SHA for d04f84a
1 file changed
lib/node_modules/@stdlib/utils/do-while/lib/do_while.js
@@ -30,10 +30,10 @@ var isFunction = require( '@stdlib/assert/is-function' );
30
function doWhile( fcn, predicate, thisArg ) {
31
var i;
32
if ( !isFunction( fcn ) ) {
33
- throw new TypeError( 'invalid input argument. Second argument must be a function. Value: `'+fcn+'`.' );
+ throw new TypeError( 'invalid input argument. First argument must be a function. Value: `'+fcn+'`.' );
34
}
35
if ( !isFunction( predicate ) ) {
36
- throw new TypeError( 'invalid input argument. First argument must be a function. Value: `'+predicate+'`.' );
+ throw new TypeError( 'invalid input argument. Second argument must be a function. Value: `'+predicate+'`.' );
37
38
i = 0;
39
do {
0 commit comments