Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit 0192fd0

Browse files
committed
fix(array): indexOf return value
1 parent 7552724 commit 0192fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imports/array/shared.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function lib.array:indexOf(value, last)
114114
local element = self[i]
115115

116116
if element == value then
117-
return element
117+
return i
118118
end
119119
end
120120
end

0 commit comments

Comments
 (0)