Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method default.prototype.index
import { default } from "https://deno.land/x/postcss@8.4.16/lib/container.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.