mirror of
https://github.com/littensy/charm.git
synced 2026-10-22 12:41:37 +00:00
fix: return the object if not an array
This commit is contained in:
parent
6587db0167
commit
495139995a
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ local function coerceDenseArray(array: { any })
|
||||||
|
|
||||||
for index in next, array do
|
for index in next, array do
|
||||||
if type(index) ~= "number" then
|
if type(index) ~= "number" then
|
||||||
return
|
return array
|
||||||
end
|
end
|
||||||
|
|
||||||
if index > 2 ^ 16 then
|
if index > 2 ^ 16 then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue