10 lines
196 B
JavaScript
10 lines
196 B
JavaScript
|
|
/**
|
||
|
|
* Check whether a selector is a custom one
|
||
|
|
*
|
||
|
|
* @param {string} selector
|
||
|
|
* @returns {boolean}
|
||
|
|
*/
|
||
|
|
export default function isCustomSelector(selector) {
|
||
|
|
return selector.startsWith(':--');
|
||
|
|
}
|