Blame view

node_modules/stylus/lib/functions/shift.js 252 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  var utils = require('../utils');
  
  /**
   * Shift an element from `expr`.
   *
   * @param {Expression} expr
   * @return {Node}
   * @api public
   */
  
   (module.exports = function(expr){
     expr = utils.unwrap(expr);
     return expr.nodes.shift();
   }).raw = true;