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#some

A Bundler with the web in mind.
Go to Latest
method postcss.Container.prototype.some
Re-export
import { postcss } from "https://deno.land/x/bundler@0.6.2/deps.ts";
const { Container } = postcss;

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: ChildNode,
index: number,
nodes: ChildNode[],
) => boolean

Iterator returns true or false.

Returns

boolean

Is some child pass condition.