Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method default.prototype.every
import { default } from "https://deno.land/x/postcss@8.4.16/lib/container.js";

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

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

Parameters

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

Iterator returns true or false.

Returns

boolean

Is every child pass condition.