Files
react-native-devtools-frontend/node_modules/stylelint/lib/utils/hasBlock.js
T
Tim van der Lippe 4cb097430f Update Stylelint and Postcss
R=jacktfranklin@chromium.org

Bug: none
Change-Id: I961be18530d3ccbc4efed0c2cda9bd603b14e27b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3372931
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
2022-01-07 14:36:30 +00:00

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;
};