mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-18 03:55:32 +00:00
10 lines
297 B
JavaScript
10 lines
297 B
JavaScript
import { isValueFunction } from './typeGuards.mjs';
|
|
|
|
/**
|
|
* @param {import('postcss-value-parser').Node} node
|
|
* @returns {node is import('postcss-value-parser').FunctionNode}
|
|
*/
|
|
export default function isVarFunction(node) {
|
|
return isValueFunction(node) && node.value.toLowerCase() === 'var';
|
|
}
|