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.

isFirstNodeOfRoot.js 293B

123456789101112131415
  1. 'use strict';
  2. const { isRoot } = require('./typeGuards');
  3. /**
  4. * @param {import('postcss').Node} node
  5. * @returns {boolean}
  6. */
  7. module.exports = function (node) {
  8. if (isRoot(node)) return false;
  9. const parentNode = node.parent;
  10. return isRoot(parentNode) && node === parentNode.first;
  11. };