source: trip-planner-front/node_modules/postcss-ordered-values/dist/lib/getValue.js@ b738035

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

initial commit

  • Property mode set to 100644
File size: 699 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = getValue;
7
8var _postcssValueParser = require("postcss-value-parser");
9
10function getValue(values) {
11 return (0, _postcssValueParser.stringify)({
12 nodes: values.reduce((nodes, arg, index) => {
13 arg.forEach((val, idx) => {
14 if (idx === arg.length - 1 && index === values.length - 1 && val.type === 'space') {
15 return;
16 }
17
18 nodes.push(val);
19 });
20
21 if (index !== values.length - 1) {
22 nodes[nodes.length - 1].type = 'div';
23 nodes[nodes.length - 1].value = ',';
24 }
25
26 return nodes;
27 }, [])
28 });
29}
30
31module.exports = exports.default;
Note: See TracBrowser for help on using the repository browser.