12 lines
299 B
JavaScript
12 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;
|
||
|
};
|