Opal-Estate-Pro/node_modules/cssnano/dist/lib/getArguments.js
2019-09-13 09:44:33 +07:00

15 lines
368 B
JavaScript

'use strict';
exports.__esModule = true;
exports.default = getArguments;
function getArguments(node) {
return node.nodes.reduce(function (list, child) {
if (child.type !== 'div') {
list[list.length - 1].push(child);
} else {
list.push([]);
}
return list;
}, [[]]);
}
module.exports = exports['default'];