hasBlock.js 392 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports["default"] = _default;
  6. /**
  7. * Check if a statement has an block (empty or otherwise).
  8. *
  9. * @param {Rule|AtRule} statement - postcss rule or at-rule node
  10. * @return {boolean} True if `statement` has a block (empty or otherwise)
  11. */
  12. function _default(statement) {
  13. return statement.nodes !== undefined;
  14. }