Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/bundler/deps.ts>postcss.Container#removeChild

A Bundler with the web in mind.
Go to Latest
method postcss.Container.prototype.removeChild
Re-export
import { postcss } from "https://deno.land/x/bundler@0.6.2/deps.ts";
const { Container } = postcss;

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: ChildNode | number

Child or child’s index.

Returns

this

This node for methods chain.