From 0a84bcd0d616a52e2e9f2c30b09f87d39697b02a Mon Sep 17 00:00:00 2001 From: rxi Date: Sun, 8 Feb 2015 15:01:17 +0000 Subject: [PATCH] Fixed internal func isarray() --- lume.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lume.lua b/lume.lua index 23e53ec..6edd847 100644 --- a/lume.lua +++ b/lume.lua @@ -43,7 +43,7 @@ local iscallable = function(x) end local isarray = function(x) - return (x and x[1]) and true or false + return (type(x) == "table" and x[1] ~= nil) and true or false end local iternil = function()