Skip to content

Commit db742ac

Browse files
authored
refactor: swap lines
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 7d0ff00 commit db742ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/node_modules/@stdlib/ndarray/unshift/lib

lib/node_modules/@stdlib/ndarray/unshift/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ function unshift( x ) {
6060
if ( nargs < 2 ) {
6161
throw new Error( 'invalid invocation. Must provide at least two arguments.' );
6262
}
63-
args = [];
6463
dtype = getDType( x );
64+
args = [];
6565
for ( i = 1; i < nargs; i++ ) {
6666
args.push( scalar2ndarray( arguments[ i ], {
6767
'dtype': dtype

0 commit comments

Comments
 (0)