Node: hasChildNodes() メソッド
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
hasChildNodes()
は Node
インターフェイスのメソッドで、この Node
に子ノードがあるかどうかを示す論理値を返します。