mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51: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
|
||||
if type(index) ~= "number" then
|
||||
return
|
||||
return array
|
||||
end
|
||||
|
||||
if index > 2 ^ 16 then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue