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