diff options
author | jeremyfa <jeremy.faivre@gmail.com> | 2015-09-15 19:03:28 +0200 |
---|---|---|
committer | jeremyfa <jeremy.faivre@gmail.com> | 2015-09-15 19:04:03 +0200 |
commit | 799ed3af1a9e62910ef0a059b71e30b499ef5311 (patch) | |
tree | 51e69d45b11d5123672a08b8441d23b0e1e1e207 /src | |
parent | 2023958da7c3eff4d42d503861c24a5d0c6b53c5 (diff) | |
download | yamljs-799ed3af1a9e62910ef0a059b71e30b499ef5311.tar.gz |
Fix #46 and add the related unit test
Diffstat (limited to 'src')
-rw-r--r-- | src/Utils.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
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 |