Skip to content

Commit b7fc7de

Browse files
authored
chore: suggestions from code review
1 parent 1b7bce6 commit b7fc7de

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/array/fixed-endian-factory/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/array/fixed-endian-factory/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
647647
/**
648648
* Returns the index of the last element in an array for which a predicate function returns a truthy value.
649649
*
650+
* @private
650651
* @name findLastIndex
651652
* @memberof TypedArray.prototype
652653
* @type {Function}
@@ -667,8 +668,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
667668
throw new TypeError( format( 'invalid argument. First argument must be a function. Value: `%s`.', predicate ) );
668669
}
669670
buf = this._buffer;
670-
len = this._length;
671-
for ( i = len - 1; i >= 0; i-- ) {
671+
for ( i = this._length - 1; i >= 0; i-- ) {
672672
if ( predicate.call( thisArg, buf[ GETTER ]( i * BYTES_PER_ELEMENT, this._isLE ), i, this ) ) {
673673
return i;
674674
}

0 commit comments

Comments
 (0)