fix(array): indexOf return value

This commit is contained in:
Linden
2025-01-21 11:33:15 +11:00
parent 755272423b
commit 0192fd015b

View File

@@ -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