epiphany/node_modules/stylelint/lib/utils/hasBlock.js
2023-12-09 22:48:07 -08:00

11 lines
299 B
JavaScript

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