MCPcopy
hub / github.com/css/csso / hasNoChildren

Function hasNoChildren

lib/clean/utils.js:1–3  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1export function hasNoChildren(node) {
2 return !node || !node.children || node.children.isEmpty;
3}
4
5export function isNodeChildrenList(node, list) {
6 return node !== null && node.children === list;

Callers 2

cleanAtruleFunction · 0.90
cleanRuleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…