posthtml-ast-is-empty
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "posthtml-ast-is-empty", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Find out, is nested array/object/string tree is empty", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -37,2 +37,32 @@ # posthtml-ast-is-empty | ||
These are empty things, for example: | ||
```js | ||
{ | ||
a: '' | ||
} | ||
``` | ||
or | ||
```js | ||
{ | ||
a: [''] | ||
b: {c: {d: ''}} | ||
} | ||
``` | ||
or | ||
```js | ||
[ | ||
{ | ||
a: [''] | ||
b: {c: {d: ''}} | ||
}, | ||
'', | ||
['', '', ''] | ||
] | ||
``` | ||
Here's how we judge if things _are empty_: | ||
@@ -39,0 +69,0 @@ |
8192
97