source:
trip-planner-front/node_modules/stylus/lib/functions/shift.js
Last change on this file was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 252 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | var utils = require('../utils'); |
2 | ||
3 | /** | |
4 | * Shift an element from `expr`. | |
5 | * | |
6 | * @param {Expression} expr | |
7 | * @return {Node} | |
8 | * @api public | |
9 | */ | |
10 | ||
11 | (module.exports = function(expr){ | |
12 | expr = utils.unwrap(expr); | |
13 | return expr.nodes.shift(); | |
14 | }).raw = true; | |
15 |
Note:
See TracBrowser
for help on using the repository browser.