isCustomSelector.mjs 196 B

123456789
  1. /**
  2. * Check whether a selector is a custom one
  3. *
  4. * @param {string} selector
  5. * @returns {boolean}
  6. */
  7. export default function isCustomSelector(selector) {
  8. return selector.startsWith(':--');
  9. }