mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-17 17:48:36 +00:00
fix(array): array:findIndex should return index (#565)
This commit is contained in:
1 parent
fcf198b21f
commit
d102f2a165
1 file changed
+1
-1
@@ -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