UNPKG

344 BJavaScriptView Raw
1'use strict';
2
3/**
4 * Check if a statement has an block (empty or otherwise).
5 *
6 * @param {import('postcss').Rule | import('postcss').AtRule} statement - postcss rule or at-rule node
7 * @return {boolean} True if `statement` has a block (empty or otherwise)
8 */
9module.exports = function (statement) {
10 return statement.nodes !== undefined;
11};