mirror of
https://github.com/thangisme/notes.git
synced 2026-07-31 05:00:46 -04:00
Initial commit
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
/* @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("
|
||||
}
|
||||
Reference in New Issue
Block a user