Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

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

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

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

Parameters

child: Child | number

Child of the current container.

Returns

number

Child index.