securityos/node_modules/stylelint/lib/utils/hasBlock.js

12 lines
299 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'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;
};