fix(array): array:findIndex should return index (#565)

This commit is contained in:
Jarosław
2024-05-02 08:07:25 +02:00
committed by GitHub
parent fcf198b21f
commit d102f2a165

View File

@@ -92,7 +92,7 @@ function Array:findIndex(testFn, last)
local element = self[i]
if testFn(element) then
return element
return i
end
end
end