isVarFunction.cjs 480 B

123456789101112131415
  1. // NOTICE: This file is generated by Rollup. To modify it,
  2. // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
  3. 'use strict';
  4. const typeGuards = require('./typeGuards.cjs');
  5. /**
  6. * @param {import('postcss-value-parser').Node} node
  7. * @returns {node is import('postcss-value-parser').FunctionNode}
  8. */
  9. function isVarFunction(node) {
  10. return typeGuards.isValueFunction(node) && node.value.toLowerCase() === 'var';
  11. }
  12. module.exports = isVarFunction;