tasks/cssstats.js
function getValueCount(values, property) {

        var arr = {};

        property = property ? property : '';

        if (!values) {
            grunt.log.writeln(app.chalkWarn('no ' + property + ' defined in your css'));
            return arr;
        }

        values.forEach(function (v) {
            v = v.replace(/['"]/g, '');

            if (arr.hasOwnProperty(v)) {
                arr[v] = arr[v] + 1;
            } else {
                arr[v] = 1;
            }
        });

        return arr;
    }
function getValueCount(values, property) {

        var arr = {};

        property = property ? property : '';

        if (!values) {
            grunt.log.writeln(app.chalkWarn('no ' + property + ' defined in your css'));
            return arr;
        }

        values.forEach(function (v) {
            v = v.replace(/['"]/g, '');

            if (arr.hasOwnProperty(v)) {
                arr[v] = arr[v] + 1;
            } else {
                arr[v] = 1;
            }
        });

        return arr;
    }
function getValueCount ( values , property ) { var arr = { } ; property = property ? property : '' ; if ( ! values ) { grunt . log . writeln ( app . chalkWarn ( 'no ' + property + ' defined in your css' ) ) ; return arr ; } values . forEach ( function ( v ) { v = v . replace ( / ['"] / g , '' ) ; if ( arr . hasOwnProperty ( v ) ) { arr [ v ] = arr [ v ] + 1 ; } else { arr [ v ] = 1 ; } } ) ; return arr ; }
sets the css property as key
set the amount of the property as value

@param values
@returns {{}}
sets the css property as key set the amount of the property as value