Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method default.prototype.removeChild
import { default } from "https://deno.land/x/postcss@8.4.16/lib/container.js";

Removes node from the container and cleans the parent properties from the node and its children.

rule.nodes.length  //=> 5
rule.removeChild(decl)
rule.nodes.length  //=> 4
decl.parent        //=> undefined

Parameters

child: Child | number

Child or child’s index.

Returns

this

This node for methods chain.