shift.js 252 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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;