Mathias Bynens | 79e2cf0 | 2020-05-29 16:46:17 +0200 | [diff] [blame] | 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 | */ | ||||
9 | module.exports = function (statement) { | ||||
10 | return statement.nodes !== undefined; | ||||
11 | }; |