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#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.2/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.