import {list} from 'postcss';

const space = list.space;

export default (...rules) => {
    return rules.reduce((memo, rule) => {
        memo += space(rule.value).length;
        return memo;
    }, 0);
};

import {list} from 'postcss';
const {space} = list;

export default (...rules) => {
    return rules.reduce((memo, rule) => memo += space(rule.value).length, 0);
};

Tidy up numValues method.