projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
913c79aaf015b927c71a405a02fb60afc1f8170a
[dotfiles/.git]
/
isVariable.js
1
/* @flow */
2
"use strict";
3
4
/**
5
* Check whether a word is a variable i.e var(--custom-property).
6
*/
7
module.exports = function(word /*: string*/) /*: boolean*/ {
8
return word.toLowerCase().slice(0, 4) === "var(";
9
};