Skip to content

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

+1-1
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)