Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hasEmptyBlock.js 394B

12345678910111213
  1. 'use strict';
  2. /**
  3. * Check if a statement has an empty block.
  4. *
  5. * @param {import('postcss').Rule | import('postcss').AtRule} statement - postcss rule or at-rule node
  6. * @return {boolean} True if the statement has a block and it is empty
  7. */
  8. module.exports = function (statement) {
  9. return (
  10. statement.nodes !== undefined && statement.nodes.length === 0 // has block
  11. ); // and is empty
  12. };