summaryrefslogtreecommitdiff
path: root/node_modules/csso/cjs/clean/utils.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/csso/cjs/clean/utils.cjs')
-rw-r--r--node_modules/csso/cjs/clean/utils.cjs12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/csso/cjs/clean/utils.cjs b/node_modules/csso/cjs/clean/utils.cjs
new file mode 100644
index 00000000..8d3260f7
--- /dev/null
+++ b/node_modules/csso/cjs/clean/utils.cjs
@@ -0,0 +1,12 @@
+'use strict';
+
+function hasNoChildren(node) {
+ return !node || !node.children || node.children.isEmpty;
+}
+
+function isNodeChildrenList(node, list) {
+ return node !== null && node.children === list;
+}
+
+exports.hasNoChildren = hasNoChildren;
+exports.isNodeChildrenList = isNodeChildrenList;