@rkmodules/rules 0.0.122 → 0.0.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +0 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -251,8 +251,6 @@ function isEmptyTree(value) {
|
|
|
251
251
|
* use isEmptyTree to check if there are no groups at all
|
|
252
252
|
*/
|
|
253
253
|
function isEmpty(value) {
|
|
254
|
-
if (!isTree(value))
|
|
255
|
-
return false;
|
|
256
254
|
if (isEmptyTree(value))
|
|
257
255
|
return true;
|
|
258
256
|
return getBranches(value).every(function (branch) { return branch.length === 0; });
|