source: trip-planner-front/node_modules/cssnano-utils/dist/getArguments.js@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 368 bytes
RevLine 
[6a3a178]1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = getArguments;
7
8function getArguments(node) {
9 return node.nodes.reduce((list, child) => {
10 if (child.type !== 'div') {
11 list[list.length - 1].push(child);
12 } else {
13 list.push([]);
14 }
15
16 return list;
17 }, [[]]);
18}
19
20module.exports = exports.default;
Note: See TracBrowser for help on using the repository browser.