Files
OliveTin/frontend/node_modules/stylelint/lib/utils/hasBlock.mjs

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;
}