Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/html_parser/src/Node.ts>hasChildren

Port of fb55/htmlparser2 for Deno
Latest
function hasChildren
import { hasChildren } from "https://deno.land/x/html_parser@v0.1.3/src/Node.ts";

Parameters

node: Node

Node to check.

Returns

true if the node is a NodeWithChildren (has children), false otherwise.