Skip to content

Commit 0a41b7c

Browse files
authored
fix: update default value
Signed-off-by: Athan <[email protected]>
1 parent deec645 commit 0a41b7c

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/blas/ext/last-index-of/lib

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/blas/ext/last-index-of/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ function lastIndexOf( x, searchElement, fromIndex ) {
118118
};
119119

120120
// Initialize the `fromIndex` to the first element along a dimension:
121-
fidx = 0;
121+
// Initialize the `fromIndex` to the first element along a dimension:
122+
fidx = -1;
122123

123124
// Initialize a flag indicating whether the `fromIndex` argument is a scalar:
124125
iflg = true;

0 commit comments

Comments
 (0)