Skip to content

Commit

Permalink
fix(array): indexOf return value
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jan 21, 2025
1 parent 7552724 commit 0192fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imports/array/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function lib.array:indexOf(value, last)
local element = self[i]

if element == value then
return element
return i
end
end
end
Expand Down

0 comments on commit 0192fd0

Please sign in to comment.