Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method Container.prototype.index
Re-export
import { Container } from "https://deno.land/x/postcss@8.4.16/lib/postcss.js";

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.