Files
szjs/node_modules/stylelint/lib/utils/hasBlock.mjs
2025-03-07 22:27:18 +08:00

10 lines
282 B
JavaScript

/**
* Check if a statement has an block (empty or otherwise).
*
* @param {import('postcss').Container} statement
* @returns {boolean} True if `statement` has a block (empty or otherwise)
*/
export default function hasBlock(statement) {
return statement.nodes !== undefined;
}