Skip to content

Commit

Permalink
fix(array): array:findIndex should return index (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarsa132 authored May 2, 2024
1 parent fcf198b commit d102f2a
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 @@ -92,7 +92,7 @@ function Array:findIndex(testFn, last)
local element = self[i]

if testFn(element) then
return element
return i
end
end
end
Expand Down

0 comments on commit d102f2a

Please sign in to comment.