hasAllProps.js 249 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 'use strict'; /** @type {(rule: import('postcss').Declaration[], ...props: string[]) => boolean} */ module.exports = (rule, ...props) => { return props.every((p) => rule.some((node) => node.prop && node.prop.toLowerCase().includes(p)) ); };