lib/SelectorMatchers.js
function(property, operator, value){
        if(operator === '='){
            return this.compareElementPropertyEquality(property, value);
        }
        if(operator === '~='){
            return String(property).split(" ").indexOf(value) !== -1;
        }
        if(operator === '^='){
            return _.startsWith(property, value);
        }
        if(operator === '$='){
            return _.endsWith(property, value);
        }
        if(operator === '*='){
            return property && property.indexOf(value) !== -1;
        }
        return true;
    }
function(property, operator, value){
        if(operator === '='){
            return this.compareElementPropertyEquality(property, value);
        }
        if(operator === '~='){
            return String(property).split(" ").indexOf(value) !== -1;
        }
        if(operator === '^='){
            return _.startsWith(property, value);
        }
        if(operator === '$='){
            return _.endsWith(property, value);
        }
        if(operator === '*='){
            return property && property.indexOf(value) !== -1;
        }
        return true;
    }
function ( property , operator , value ) { if ( operator === '=' ) { return this . compareElementPropertyEquality ( property , value ) ; } if ( operator === '~=' ) { return String ( property ) . split ( " " ) . indexOf ( value ) !== - 1 ; } if ( operator === '^=' ) { return _ . startsWith ( property , value ) ; } if ( operator === '$=' ) { return _ . endsWith ( property , value ) ; } if ( operator === '*=' ) { return property && property . indexOf ( value ) !== - 1 ; } return true ; }
Function to parse attribute CSS queries for the various types of comparitor functions supported
in attribute queries and then performs the specific comparison of property and value
@param  {Mixed} property  Value of component prop to compare against
@param  {String} operator Comparison operator
@param  {String} value    Value to compare
@return {Bool}            Whether property matches value with the given operator check
Function to parse attribute CSS queries for the various types of comparitor functions supported in attribute queries and then performs the specific comparison of property and value