From 799ed3af1a9e62910ef0a059b71e30b499ef5311 Mon Sep 17 00:00:00 2001 From: jeremyfa Date: Tue, 15 Sep 2015 19:03:28 +0200 Subject: Fix #46 and add the related unit test --- src/Utils.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Utils.coffee b/src/Utils.coffee index eb315ce..6ab1116 100644 --- a/src/Utils.coffee +++ b/src/Utils.coffee @@ -86,7 +86,7 @@ class Utils # @return [Boolean] true if the value is empty # @isEmpty: (value) -> - return not(value) or value is '' or value is '0' + return not(value) or value is '' or value is '0' or (value instanceof Array and value.length is 0) # Counts the number of occurences of subString inside string -- cgit v1.2.1