12 lines
264 B
JavaScript
12 lines
264 B
JavaScript
|
'use strict';
|
||
|
|
||
|
/**
|
||
|
* Check whether a function is custom / user-defined
|
||
|
* https://github.com/w3c/css-houdini-drafts/issues/1007
|
||
|
* @param {string} func
|
||
|
* @returns {boolean}
|
||
|
*/
|
||
|
module.exports = function isCustomFunction(func) {
|
||
|
return func.startsWith('--');
|
||
|
};
|