mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-05 11:31:31 +08:00
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>
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;
|
|
};
|