mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-12 22:52:21 -06:00
10 lines
213 B
JavaScript
10 lines
213 B
JavaScript
/* @flow */
|
|
"use strict"
|
|
|
|
/**
|
|
* Check whether a word is a variable i.e var(--custom-property).
|
|
*/
|
|
module.exports = function (word/*: string*/)/*: boolean*/ {
|
|
return word.toLowerCase().slice(0, 4) === "var("
|
|
}
|