hasBlock.js 299 B

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