Opal-Estate-Pro/node_modules/postcss-merge-longhand/dist/lib/numValues.js
2019-09-13 11:27:52 +07:00

22 lines
488 B
JavaScript
Executable File

'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _postcss = require('postcss');
var space = _postcss.list.space;
exports['default'] = function () {
for (var _len = arguments.length, rules = Array(_len), _key = 0; _key < _len; _key++) {
rules[_key] = arguments[_key];
}
return rules.reduce(function (memo, rule) {
memo += space(rule.value).length;
return memo;
}, 0);
};
module.exports = exports['default'];