Skip to content

Commit

Permalink
Fix array-last-index-of.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stonechoe committed Jan 30, 2024
1 parent 794a736 commit 3d00fba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core-js/internals/array-last-index-of.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = FORCED ? function lastIndexOf(searchElement /* , fromIndex = @[
if (NEGATIVE_ZERO) return apply($lastIndexOf, this, arguments) || 0;
var O = toIndexedObject(this);
var length = lengthOfArrayLike(O);
if (length === 0) return -1;
var index = length - 1;
if (arguments.length > 1) index = min(index, toIntegerOrInfinity(arguments[1]));
if (index < 0) index = length + index;
Expand Down

0 comments on commit 3d00fba

Please # to comment.