File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/node_modules/@stdlib/ndarray/shift Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ var y = shift( x );
60
60
// returns [ <ndarray>, <ndarray> ]
61
61
62
62
arr = ndarray2array ( y[ 0 ] );
63
- // returns [ [ 2.0], [ 4.0 ], [ 6.0 ] ]
63
+ // returns [ [ 2.0 ], [ 4.0 ], [ 6.0 ] ]
64
64
65
65
arr = ndarray2array ( y[ 1 ] );
66
66
// returns [ [ 1.0 ], [ 3.0 ], [ 5.0 ] ]
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ var format = require( '@stdlib/string/format' );
39
39
* @throws {TypeError } first argument must be an ndarray having one or more dimensions
40
40
* @throws {RangeError } dimension index exceeds the number of dimensions
41
41
* @throws {TypeError } options argument must be an object
42
- * * @throws {TypeError } must provide valid options
42
+ * @throws {TypeError } must provide valid options
43
43
* @returns {Array<ndarray> } a list of ndarray views
44
44
*
45
45
* @example
@@ -83,7 +83,7 @@ function shift( x ) {
83
83
}
84
84
if ( hasOwnProp ( options , 'dim' ) ) {
85
85
if ( ! isInteger ( options . dim ) ) {
86
- throw new TypeError ( format ( 'invalid option. `%s` option must be an integer. Option: `%s`.' , 'strict ' , options . dim ) ) ;
86
+ throw new TypeError ( format ( 'invalid option. `%s` option must be an integer. Option: `%s`.' , 'dim ' , options . dim ) ) ;
87
87
}
88
88
opts . dim = options . dim ;
89
89
}
You can’t perform that action at this time.
0 commit comments