source: trip-planner-front/node_modules/stylus/lib/functions/list-separator.js@ e29cc2e

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

initial commit

  • Property mode set to 100644
File size: 482 bytes
Line 
1var utils = require('../utils')
2 , nodes = require('../nodes');
3
4/**
5 * Return the separator of the given `list`.
6 *
7 * Examples:
8 *
9 * list1 = a b c
10 * list-separator(list1)
11 * // => ' '
12 *
13 * list2 = a, b, c
14 * list-separator(list2)
15 * // => ','
16 *
17 * @param {Experssion} list
18 * @return {String}
19 * @api public
20 */
21
22(module.exports = function listSeparator(list){
23 list = utils.unwrap(list);
24 return new nodes.String(list.isList ? ',' : ' ');
25}).raw = true;
Note: See TracBrowser for help on using the repository browser.