mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 22:29:30 +08:00
13 lines
340 B
Text
13 lines
340 B
Text
'use strict';
|
|
|
|
/**
|
|
* @param {import('postcss-selector-parser').Selector} selector
|
|
* @param {number} index
|
|
* @param {string} value
|
|
* @return {boolean | undefined | ''}
|
|
*/
|
|
module.exports = function exists(selector, index, value) {
|
|
const node = selector.at(index);
|
|
|
|
return node && node.value && node.value.toLowerCase() === value;
|
|
};
|