hasBlock.cjs 453 B

123456789101112131415
  1. // NOTICE: This file is generated by Rollup. To modify it,
  2. // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
  3. 'use strict';
  4. /**
  5. * Check if a statement has an block (empty or otherwise).
  6. *
  7. * @param {import('postcss').Container} statement
  8. * @returns {boolean} True if `statement` has a block (empty or otherwise)
  9. */
  10. function hasBlock(statement) {
  11. return statement.nodes !== undefined;
  12. }
  13. module.exports = hasBlock;