Removes all empty values from the AST.
By empty value we mean null, empty string, empty array/object or array/object that only consists of empty items.
In order to preserve the length and offsets in the arrays that have at least one non-empty item,
the rest empty items are not removed but replaced with null.
Removes all empty values from the AST. By
empty value
we meannull
, empty string, empty array/object or array/object that only consists of empty items.In order to preserve the length and offsets in the arrays that have at least one non-empty item, the rest empty items are not removed but replaced with
null
.