mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(array): array:findIndex should return index (#565)
This commit is contained in:
@@ -92,7 +92,7 @@ function Array:findIndex(testFn, last)
|
||||
local element = self[i]
|
||||
|
||||
if testFn(element) then
|
||||
return element
|
||||
return i
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user