hasBlock.mjs 282 B

123456789
  1. /**
  2. * Check if a statement has an block (empty or otherwise).
  3. *
  4. * @param {import('postcss').Container} statement
  5. * @returns {boolean} True if `statement` has a block (empty or otherwise)
  6. */
  7. export default function hasBlock(statement) {
  8. return statement.nodes !== undefined;
  9. }