source: frontend/node_modules/stylehacks/src/exists.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 340 bytes
Line 
1'use strict';
2
3/**
4 * @param {import('postcss-selector-parser').Selector} selector
5 * @param {number} index
6 * @param {string} value
7 * @return {boolean | undefined | ''}
8 */
9module.exports = function exists(selector, index, value) {
10 const node = selector.at(index);
11
12 return node && node.value && node.value.toLowerCase() === value;
13};
Note: See TracBrowser for help on using the repository browser.