mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-19 07:56:02 +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]
|
local element = self[i]
|
||||||
|
|
||||||
if testFn(element) then
|
if testFn(element) then
|
||||||
return element
|
return i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user