Sign in
chromium
/
devtools
/
devtools-frontend
/
main
/
.
/
node_modules
/
stylelint
/
lib
/
utils
/
isVariable.mjs
blob: 254541189931a2320df0959f7129a27c6029ed7e [
file
] [
log
] [
blame
]
/**
* Check whether a word is a variable i.e var(--custom-property).
*
* @param {string} word
* @returns {boolean}
*/
export
default
function
isVariable
(
word
)
{
return
word
.
toLowerCase
().
startsWith
(
'var('
);
}