mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
fix(array): indexOf return value
This commit is contained in:
@@ -114,7 +114,7 @@ function lib.array:indexOf(value, last)
|
||||
local element = self[i]
|
||||
|
||||
if element == value then
|
||||
return element
|
||||
return i
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user