mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-28 21:14:44 +00:00
fix(array): indexOf return value
This commit is contained in:
1 parent
755272423b
commit
0192fd015b
1 file changed
+1
-1
@@ -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