Skip to content

Commit

Permalink
Merge pull request #1326 from minseok-choe/fix/issue-lastindexof
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock authored Jan 30, 2024
2 parents 9c81815 + 3d00fba commit b2a7258
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 b2a7258

Please # to comment.