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

Returns true if callback returns true for (at least) one of the container’s children.

const hasPrefix = rule.some(i => i.prop[0] === '-')

Parameters

condition: (
node: Child,
index: number,
nodes: Child[],
) => boolean

Iterator returns true or false.

Returns

boolean

Is some child pass condition.