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

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

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

Returns a child’s index within the Container#nodes array.

rule.index( rule.nodes[2] ) //=> 2

Parameters

child: ChildNode | number

Child of the current container.

Returns

number

Child index.