isCustomFunction.js 264 B

1234567891011
  1. 'use strict';
  2. /**
  3. * Check whether a function is custom / user-defined
  4. * https://github.com/w3c/css-houdini-drafts/issues/1007
  5. * @param {string} func
  6. * @returns {boolean}
  7. */
  8. module.exports = function isCustomFunction(func) {
  9. return func.startsWith('--');
  10. };