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 b5ace26 commit 57a9400Copy full SHA for 57a9400
lib/node_modules/@stdlib/ndarray/flatten/lib/main.js
@@ -301,7 +301,7 @@ function flatten( x, options ) {
301
};
302
303
// Resolve function options...
304
- if ( nargs === 2 ) {
+ if ( nargs > 1 ) {
305
if ( !isPlainObject( options ) ) {
306
throw new TypeError( format( 'invalid argument. Options argument must be an object. Value: `%s`.', options ) );
307
}
0 commit comments