Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/bundler/deps.ts>postcss.Container#every

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

Returns true if callback returns true for all of the container’s children.

const noPrefixes = rule.every(i => i.prop[0] !== '-')

Parameters

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

Iterator returns true or false.

Returns

boolean

Is every child pass condition.