dashboardjavacloudcoapiotiot-analyticsiot-platformiot-solutionskafkalwm2mmicroservicesmiddlewaremqttnettyplatformsnmpthingsboardvisualizationwebsocketswidgets
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.
13 lines
406 B
13 lines
406 B
'use strict';
|
|
|
|
const MATH_FUNCTIONS = require('../reference/mathFunctions');
|
|
|
|
/**
|
|
* Check whether a node is math function
|
|
*
|
|
* @param {import('postcss-value-parser').Node} node postcss-value-parser node
|
|
* @return {boolean} If `true`, the node is math function
|
|
*/
|
|
module.exports = function isMathFunction(node) {
|
|
return node.type === 'function' && MATH_FUNCTIONS.includes(node.value.toLowerCase());
|
|
};
|
|
|