We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d68f17c commit f3ba2d3Copy full SHA for f3ba2d3
lib/node_modules/@stdlib/streams/node/from-constant/lib/factory.js
@@ -85,12 +85,12 @@ function factory( value, options ) {
85
opts = assign( {}, value );
86
FLG = true;
87
} else {
88
- if ( !isObject( options ) ) {
89
- throw new TypeError( format( 'invalid argument. Options argument must be an object. Value: `%s`.', options ) );
90
- }
91
opts = {};
92
}
93
} else { // nargs > 1
+ if ( !isObject( options ) ) {
+ throw new TypeError( format( 'invalid argument. Options argument must be an object. Value: `%s`.', options ) );
+ }
94
opts = assign( {}, options );
95
96
if ( FLG ) {
0 commit comments